where is cpSpaceGetIterations?

Discuss new features and future development.
Post Reply
dca
Posts: 3
Joined: Sat Dec 01, 2012 5:56 pm
Contact:

where is cpSpaceGetIterations?

Post 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.
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: where is cpSpaceGetIterations?

Post 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
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
dca
Posts: 3
Joined: Sat Dec 01, 2012 5:56 pm
Contact:

Re: where is cpSpaceGetIterations?

Post by dca »

Hi.
Thanks for reply.
slembcke wrote:If you are asking where they are defined, it's in the cpSpace.h header:
https://github.com/slembcke/Chipmunk-Ph ... ace.h#L130
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)
User avatar
slembcke
Site Admin
Posts: 4166
Joined: Tue Aug 14, 2007 7:13 pm
Contact:

Re: where is cpSpaceGetIterations?

Post 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.
Can't sleep... Chipmunks will eat me...
Check out our latest projects! -> http://howlingmoonsoftware.com/wordpress/
dca
Posts: 3
Joined: Sat Dec 01, 2012 5:56 pm
Contact:

Re: where is cpSpaceGetIterations?

Post 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.
samvv
Posts: 1
Joined: Tue Feb 26, 2013 12:14 pm
Contact:

Re: where is cpSpaceGetIterations?

Post 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!
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests