J
Jeff Davis
I am having problems porting my extension to 1.9.
I'm doing something like:
static VALUE my_alloc(VALUE klass)
{
return Data_Wrap_Struct(klass, NULL, my_free, NULL);
}
...
static VALUE my_init(int argc, VALUE *argv, VALUE self)
{
...
Check_Type(self,T_DATA);
DATA_PTR(self) = my_var;
...
}
But on the "Check_Type(self,T_DATA)" I get:
"[BUG] unknown type 0x12".
This worked fine in 1.8. What's the correct way to do this in 1.9?
Regards,
Jeff Davis
I'm doing something like:
static VALUE my_alloc(VALUE klass)
{
return Data_Wrap_Struct(klass, NULL, my_free, NULL);
}
...
static VALUE my_init(int argc, VALUE *argv, VALUE self)
{
...
Check_Type(self,T_DATA);
DATA_PTR(self) = my_var;
...
}
But on the "Check_Type(self,T_DATA)" I get:
"[BUG] unknown type 0x12".
This worked fine in 1.8. What's the correct way to do this in 1.9?
Regards,
Jeff Davis