mirror of
https://github.com/ruby-opencv/ruby-opencv
synced 2023-03-27 23:22:12 -04:00
renamee cCvError::raise_cverror to cCvError::raise, and added raise_cverror to cvutils.h (shortcut macro of cCvError::raise)
This commit is contained in:
parent
ec43f609c4
commit
d983d80fa6
4 changed files with 8 additions and 4 deletions
|
@ -10,13 +10,15 @@
|
|||
#include "cvutils.h"
|
||||
|
||||
void
|
||||
raise_typeerror(VALUE object, VALUE expected_class) {
|
||||
raise_typeerror(VALUE object, VALUE expected_class)
|
||||
{
|
||||
rb_raise(rb_eTypeError, "wrong argument type %s (expected %s)",
|
||||
rb_obj_classname(object), rb_class2name(expected_class));
|
||||
}
|
||||
|
||||
void
|
||||
raise_compatible_typeerror(VALUE object, VALUE expected_class) {
|
||||
raise_compatible_typeerror(VALUE object, VALUE expected_class)
|
||||
{
|
||||
rb_raise(rb_eTypeError, "wrong argument type %s (expected %s or compatible object)",
|
||||
rb_obj_classname(object), rb_class2name(expected_class));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue