Re: [racket] FFI: Giving a double pointer to a function

2012-12-02 Thread Vince Kuyatt
Stepping through the program when debugging, it (the Racket runtime) now crashes when running (cpArbiterGetShapes arb) with the modifications you suggested. (also I just pushed the changes to the GitHub repo for the bindings: https://github.com/Freezerburn/Rhipmunk-Physics if you want to take a loo

Re: [racket] FFI: Giving a double pointer to a function

2012-12-02 Thread Ryan Culpepper
Based on the documentation I found and the CP_ARBITER_GET_SHAPES macro, it looks like the double-pointer arguments are just used for multiple outputs. So you should use the following type for the function: (_fun _cpArbiter-pointer (out1 : (_ptr o _cpShape-pointer)) (out2 : (_ptr o _

[racket] FFI: Giving a double pointer to a function

2012-12-02 Thread Vince Kuyatt
So I recently started to poke at my humble little bindings to the Chipmunk library again. (someone sent me an email asking for help, which reminded me that I hadn't worked on it in a while) The problem is that I'm still stumbling over the same block that made me stop in the first place a number of