not logged in | [Login]
While binding to C APIs that need callbacks is fine most of the time, occasionally you will hit a rare case where the API needs features that the FFI does not yet support - specifically, callback signatures with varargs or pass-by-value aggregates.
Please list examples here as you encounter them.
Implementing the IDropTarget COM interface requires methods that need pass-by-value POINTL struct parameters.
Please see this example for how to overcome this: FFI Callbacks with pass-by-value structs
retro_log_printf_t takes log level, format and varargs to be presented to e g vsnprintf.
Vararg callbacks don't work so there's no way to set this function from luajit (?).