FFI doesn't support varargs parameters in callbacks - I think the only way to solve this is to write some C code to handle the varargs part and then call the FFI callback.
Have a look at ffi-compiler (https://github.com/ffi/ffi-compiler) if you want to easy(ish) way to compile custom code to load with FFI.
On Wednesday, 13 February 2013 08:49:53 UTC+10, Ole Olson wrote:
Hi,
I have to use a callback function with varargs (I already red issue #161).
I cannot avoid this because I cannot change the interface of the C Library.
Do you have any idea, how to solve this problem ?
Maybe define va_list as an parameter and split the elements in the implementation of the callback ?
Thanks for help.
--
---
You received this message because you are subscribed to the Google Groups "ruby-ffi" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-ffi+unsubscribe@googlegroups.com.
For more options, visit
https://groups.google.com/groups/opt_out.