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

refactored some functions to get options

This commit is contained in:
ser1zw 2011-10-31 03:28:06 +09:00
parent 1d1244de0c
commit cd3cd06829
10 changed files with 98 additions and 63 deletions

View file

@ -257,7 +257,7 @@ CVMETHOD(const char *name, VALUE method, int ifnone = 0)
}
inline int
TRUE_OR_FALSE(VALUE object, int ifnone)
TRUE_OR_FALSE(VALUE object, int ifnone = 0)
{
int value = ifnone;
switch (TYPE(object)) {