Method: Fiddle::Pointer#free=
- Defined in:
- pointer.c
#free=(function) ⇒ Object
Set the free function for this pointer to function
in the given Fiddle::Function.
415 416 417 418 419 420 421 422 423 424 |
# File 'pointer.c', line 415 static VALUE rb_fiddle_ptr_free_set(VALUE self, VALUE val) { struct ptr_data *data; TypedData_Get_Struct(self, struct ptr_data, &fiddle_ptr_data_type, data); data->free = get_freefunc(val, &data->wrap[1]); return Qnil; } |