vendor/rust/rust/templates/CxxClassDefinitions.rusttpl in gecoder-with-gecode-1.0.0 vs vendor/rust/rust/templates/CxxClassDefinitions.rusttpl in gecoder-with-gecode-1.1.0
- old
+ new
@@ -24,12 +24,12 @@
if( ! is_!class_varname!(rval) )
{
VALUE klass = rb_funcall(rval, rb_intern("class"), 0);
if( argn > 0)
- rb_raise(rb_eArgError, "Expecting !c_class_name! given %s for argument %d", RSTRING(rb_funcall(klass, rb_intern("to_s"), 0))->ptr, argn);
+ rb_raise(rb_eArgError, "Expecting !c_class_name! given %s for argument %d", RSTRING_PTR(RSTRING(rb_funcall(klass, rb_intern("to_s"), 0))), argn);
else
- rb_raise(rb_eArgError, "Expecting !c_class_name! given %s", RSTRING(rb_funcall(klass, rb_intern("to_s"), 0))->ptr, argn);
+ rb_raise(rb_eArgError, "Expecting !c_class_name! given %s", RSTRING_PTR(RSTRING(rb_funcall(klass, rb_intern("to_s"), 0))), argn);
return 0;
}
!c_class_name!* ptr;
Data_Get_Struct(rval, !c_class_name!, ptr);