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
cp_static_inline :cpSpatialIndexEach, [:pointer, :cpSpatialIndexIteratorFunc, :pointer], :void
result in errors :
/chipmunk-ffi/lib/chipmunk-ffi.rb:35:in `initialize': Invalid parameter type (:cpSpatialIndexIteratorFunc) (TypeError)
Using a :pointer instead of a defined callback doesn't work either, passing a method where a :pointer argument is expected gives this:
:pointer argument is not a valid pointer
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: