Open utgarda opened 13 years ago
Most of static inline functions in chipmunk headers are just simple convenience one-liners, so they can be implemented on our side without any productivity loss. Maybe that can work even faster. Just did that for cpSpatialIndexQuery, works ok so far.
cp_static_inline doesn't take as function argument types any callbacks defined earlier in code. Never before was an issue, cause it's the first time static inline functions in chipmunk API have something except pointers and structs for args.
Thus, lines like this
result in errors :
Using a :pointer instead of a defined callback doesn't work either, passing a method where a :pointer argument is expected gives this: