*polished code.
This commit is contained in:
parent
12f873b107
commit
5b9243dca7
@ -6278,11 +6278,10 @@ static mb_meta_status_u _try_overridden_usertype_ref(mb_interpreter_t* s, void**
|
||||
_object_t obj;
|
||||
_MAKE_NIL(&obj);
|
||||
_public_value_to_internal_object(d, &obj);
|
||||
if(t == MB_MF_COLL && obj.data.usertype_ref->coll_func) {
|
||||
if(t == MB_MF_COLL && obj.data.usertype_ref->coll_func)
|
||||
return obj.data.usertype_ref->coll_func(s, l, f);
|
||||
} else if(t == MB_MF_FUNC && obj.data.usertype_ref->generic_func) {
|
||||
else if(t == MB_MF_FUNC && obj.data.usertype_ref->generic_func)
|
||||
return obj.data.usertype_ref->generic_func(s, l, f);
|
||||
}
|
||||
}
|
||||
#endif /* MB_ENABLE_USERTYPE_REF */
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user