neelance / ffi_gen

A generator for Ruby FFI bindings, directly from header files via LLVM's Clang compiler
MIT License
88 stars 26 forks source link

Read all parameters for function pointers #28

Closed jbreeden closed 9 years ago

jbreeden commented 9 years ago

Ok, I think I'm getting the hang of this git thing now. Figured out how to isolate my changes better so I'm not sending a huge mess of changes. I should probably pick my last pull request into cleaner parts...

Anyway, I was missing the first argument for my callback types in GTK+ due to this line in the typedef handling logic.

whitequark commented 9 years ago

Can you provide a testcase?

whitequark commented 9 years ago

Nevermind, libclang itself contains one. Fixed in master.