mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
added raise_typeerror, raise_compatible_typeerror
This commit is contained in:
parent
ecca9a0d66
commit
76f2933061
17 changed files with 65 additions and 42 deletions
|
@ -51,7 +51,7 @@ VALUE_TO_CVSLICE(VALUE object)
|
|||
rb_funcall(object, rb_intern("exclude_end?"), 0) ? NUM2INT(rb_funcall(object, rb_intern("end"), 0)) : NUM2INT(rb_funcall(object, rb_intern("end"), 0)) - 1);
|
||||
}
|
||||
else {
|
||||
rb_raise(rb_eTypeError, "require %s or compatible object.", rb_class2name(cCvSlice::rb_class()));
|
||||
raise_compatible_typeerror(object, cCvSlice::rb_class());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue