E
Elias Athanasopoulos
Hello!
Is there a handy function to display messages to stdout/sterr inside
a ruby extension.
I thougth that:
if ((RARRAY(x) == NULL) || (RARRAY(y) == NULL))
{
rb_warn ("2nd and 3rd parameter must be arrays!\n");
return Qnil;
}
Would do such a thing.
BTW, is this a nice way to determine if an argument to a method
is an array of objects?
Regards,
Is there a handy function to display messages to stdout/sterr inside
a ruby extension.
I thougth that:
if ((RARRAY(x) == NULL) || (RARRAY(y) == NULL))
{
rb_warn ("2nd and 3rd parameter must be arrays!\n");
return Qnil;
}
Would do such a thing.
BTW, is this a nice way to determine if an argument to a method
is an array of objects?
Regards,