Subject:
Re: [ruby-ffi] Re: segfault on windows MRI but not windows JRuby
From:
Jon
Date:
12/14/09 10:33 AM
To:
ruby-ffi@googlegroups.com

On Fri, 11 Dec 2009 14:25:30 -0800 (PST)
neetpgr <neetpgr@gmail.com> wrote:

> lib/ffi/library.rb in gem is old, so every callback's convention
> is :default.

Where do you see this in the 0.5.4 library.rb code?

On line 64, shouldn't this code

  options[:convention] = defined?(@ffi_convention) ? @ffi_convention : :default

take care of the calling convention (even for callbacks) as long as you've explicity called ffi_convention before attach_function?

Jon