13 #define rb_ffi_type_of(t) (signed_p ? &ffi_type_s##t : &ffi_type_u##t) 17 return &ffi_type_void;
19 return &ffi_type_pointer;
33 return &ffi_type_float;
35 return &ffi_type_double;
39 return &ffi_type_pointer;
77 dst->slong_long = NUM2LL(src);
80 dst->ulong_long = NUM2ULL(src);
126 return LL2NUM(retval.slong_long);
127 case -TYPE_LONG_LONG:
128 return ULL2NUM(retval.ulong_long);
ffi_type * int_to_ffi_type(int type)
void rb_raise(VALUE exc, const char *fmt,...)
void value_to_generic(int type, VALUE src, fiddle_generic *dst)
VALUE generic_to_value(VALUE rettype, fiddle_generic retval)
VALUE rb_funcall(VALUE, ID, int,...)
Calls a method.
VALUE rb_Integer(VALUE)
Equivalent to Kernel#Integer in Ruby.
VALUE rb_const_get(VALUE, ID)
#define rb_ffi_type_of(t)