where is cpSpaceGetIterations?

Discuss new features and future development.

where is cpSpaceGetIterations?

Postby dca » Sat Dec 01, 2012 5:58 pm

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.
dca
 
Posts: 3
Joined: Sat Dec 01, 2012 5:56 pm

Re: where is cpSpaceGetIterations?

Postby slembcke » Sat Dec 01, 2012 8:54 pm

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/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: where is cpSpaceGetIterations?

Postby dca » Sun Dec 02, 2012 10:46 am

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)
dca
 
Posts: 3
Joined: Sat Dec 01, 2012 5:56 pm

Re: where is cpSpaceGetIterations?

Postby slembcke » Mon Dec 03, 2012 3:44 pm

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/
User avatar
slembcke
Site Admin
 
Posts: 4164
Joined: Tue Aug 14, 2007 7:13 pm

Re: where is cpSpaceGetIterations?

Postby dca » Mon Dec 03, 2012 4:44 pm

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.
dca
 
Posts: 3
Joined: Sat Dec 01, 2012 5:56 pm

Re: where is cpSpaceGetIterations?

Postby samvv » Tue Feb 26, 2013 12:17 pm

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


Return to Features/Development

Who is online

Users browsing this forum: No registered users and 2 guests

cron