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:
parent
1d1244de0c
commit
cd3cd06829
10 changed files with 98 additions and 63 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue