Subject:
Re: [ruby-ffi] Re: Inline Callbacks
From:
Charles Strahan
Date:
10/31/11 7:25 PM
To:
ruby-ffi@googlegroups.com

Awesome! Thank you Wayne, that makes perfect sense.

Cheers,
-Charles

On Sat, Oct 29, 2011 at 8:07 PM, Wayne Meissner <wmeissner@gmail.com> wrote:

Blocks-as-callbacks work only for the case where there is exactly one callback parameter specified for the function, when the function is called with a block, and the number of arguments passed is one less than the number specified, then pass the block as the callback.

Its in Call.c, line 86.

Not supported for varargs functions.