1
0
Fork 0
mirror of https://github.com/ruby-opencv/ruby-opencv synced 2023-03-27 23:22:12 -04:00

changed some functions which call CVMAT_WITH_CHECK() to call CVARR_WITH_CHECK()

This commit is contained in:
ser1zw 2011-11-20 20:18:24 +09:00
parent fe28fc87d5
commit d49d62c7f8
4 changed files with 44 additions and 16 deletions

View file

@ -11,16 +11,28 @@
void
raise_typeerror(VALUE object, VALUE expected_class)
{
raise_typeerror(object, rb_class2name(expected_class));
}
void
raise_typeerror(VALUE object, const char* expected_class_name)
{
rb_raise(rb_eTypeError, "wrong argument type %s (expected %s)",
rb_obj_classname(object), rb_class2name(expected_class));
rb_obj_classname(object), expected_class_name);
}
void
raise_compatible_typeerror(VALUE object, VALUE expected_class)
{
raise_compatible_typeerror(object, rb_class2name(expected_class));
}
void
raise_compatible_typeerror(VALUE object, const char* expected_class_name)
{
rb_raise(rb_eTypeError, "wrong argument type %s (expected %s or compatible object)",
rb_obj_classname(object), rb_class2name(expected_class));
rb_obj_classname(object), expected_class_name);
}
/*