chipmunk-rb / chipmunk-ffi

chipmunk ruby bindings using ffi
26 stars 6 forks source link

5.3.1 ABI change #12

Closed mieko closed 13 years ago

mieko commented 13 years ago

There's an unfortunate arbitrary ABI change in Chipmunk r495 that appears to have made it into 5.3.1+

http://code.google.com/p/chipmunk-physics/source/diff?spec=svn495&r=495&format=side&path=/trunk/include/chipmunk/cpBody.h&old_path=/trunk/include/chipmunk/cpBody.h&old=494

As you can imagine, this was pretty weird to track down. Started getting NaNs after setting v_limit.

mieko commented 13 years ago

BTW, I originally wrote a patch that split CP::VERSION into components, but I was trying to be non-invasive. At your discretion how far a simple string compare will hold against Chipmunk's versioning scheme.

Thanks, -M

shawn42 commented 13 years ago

applied, spoke with Scott (author of chipmunk, waiting to see how he handles the fact that he broke the API) Thanks for the contribution to chipmunk-ffi; what are you using it for?