Re: [pygccxml-development] inline asm
Brought to you by:
mbaas,
roman_yakovenko
|
From: Roman Y. <rom...@gm...> - 2008-08-16 10:08:25
|
On Sat, Aug 16, 2008 at 11:23 AM, Thomas Rab <tho...@gm...> wrote:
> Now that I have my other problem solved.. does py++ support inline asm?
What do you mean? Any way the answer is "no".
> If
> so, how exactly would I handle a function that uses inline asm? If not, I'm
> having problems excluding the function and most likely I'm doing it wrong :P
> This is the offending code:
>
> NX_INLINE void NxMath::sinCos(NxF32 f, NxF32& s, NxF32& c)
> {
> #ifdef WIN32
> NxF32 localCos, localSin;
> NxF32 local = f;
> _asm fld local
> _asm fsincos
> _asm fstp localCos
> _asm fstp localSin
> c = localCos;
> s = localSin;
> #else
> c = cosf(f);
> s = sinf(f);
> #endif
> }
> It's from the PhysX sdk :P
> This function is in a different header than I'm trying to bind, so this may
> be my issue. How do I exclude a member function if it's in a different
> header than I'm binding? I tried doing it just the way I normally would:
> foo = mb.member_function("foo")
> foo.exclude()
> That didn't work. I also tried specifying the class:
> bar = mb.class_("bar")
> foo = bar.member_function("foo")
> foo.exclude()
> But that didn't work either. -Tom
Sorry, I don't understand your question.
Please create small and complete example, that demonstrates the
problem. Also can you be clear what the problem is?
--
Roman Yakovenko
C++ Python language binding
http://www.language-binding.net/
|