Page 1 of 1
where is cpSpaceGetIterations?
Posted: Sat Dec 01, 2012 5:58 pm
by dca
Hi. Is cpSpace[Get/Set]Iterations deprecated?
Can't find it in includes/source code.
Thanks.
P.S
Can something wrong be with my setup?
Whole cpSpaceGetXXX() funcs are missing.
Re: where is cpSpaceGetIterations?
Posted: Sat Dec 01, 2012 8:54 pm
by slembcke
If you are asking where they are defined, it's in the cpSpace.h header:
https://github.com/slembcke/Chipmunk-Ph ... ace.h#L130
Re: where is cpSpaceGetIterations?
Posted: Sun Dec 02, 2012 10:46 am
by dca
Hi.
Thanks for reply.
The problem is that i don't see them defined in include/chipunk.
And they are not present in libchipmunk.so.0.0.d. (i nm-ed that lib)
Re: where is cpSpaceGetIterations?
Posted: Mon Dec 03, 2012 3:44 pm
by slembcke
It's defined as a static inline function using a macro on cpSpace.h:130. It would only be exported as a symbol if you enabled the FFI binding support in which case it force a non-static copy of the functions to be exported with an underscore prefix on the function name.
Re: where is cpSpaceGetIterations?
Posted: Mon Dec 03, 2012 4:44 pm
by dca
Thank you!
slembcke wrote:It's defined as a static inline function using a macro on cpSpace.h:130. It would only be exported as a symbol if you enabled the FFI binding support in which case it force a non-static copy of the functions to be exported with an underscore prefix on the function name.
Re: where is cpSpaceGetIterations?
Posted: Tue Feb 26, 2013 12:17 pm
by samvv
slembcke wrote:It's defined as a static inline function using a macro on cpSpace.h:130. It would only be exported as a symbol if you enabled the FFI binding support in which case it force a non-static copy of the functions to be exported with an underscore prefix on the function name.
Thanks! Helped me too!