The functions passed to rb_ensure should be VALUEs. It's probably
the case that Ruby is going to pass these directly without ever
examining them, but maybe not.
This wraps the ParseArgs pointer as a Ruby object (of class Data
which is what the documentation seems to suggest rather than class
Object, but Data is also deprecated so who knows?).
This fixes several compilation warnings about mismatched types.
The functions passed to
rb_ensure
should beVALUE
s. It's probably the case that Ruby is going to pass these directly without ever examining them, but maybe not.This wraps the
ParseArgs
pointer as a Ruby object (of classData
which is what the documentation seems to suggest rather than classObject
, butData
is also deprecated so who knows?).This fixes several compilation warnings about mismatched types.