*improved IS statement.
This commit is contained in:
parent
ec695b5d5f
commit
64113a7720
3
HISTORY
3
HISTORY
@ -1,6 +1,7 @@
|
|||||||
Jan. 6 2016
|
Jan. 6 2016
|
||||||
Added support to use TYPE("NUMBER") to represent both integer and real
|
|
||||||
Developing lambda, added cloning support
|
Developing lambda, added cloning support
|
||||||
|
Added support to use TYPE("NUMBER") to represent both integer and real
|
||||||
|
Improved IS statement
|
||||||
|
|
||||||
Jan. 5 2016
|
Jan. 5 2016
|
||||||
Developing lambda, added data structure
|
Developing lambda, added data structure
|
||||||
|
@ -10219,6 +10219,8 @@ int _core_is(mb_interpreter_t* s, void** l) {
|
|||||||
scd = (_object_t*)((_tuple3_t*)*l)->e2;
|
scd = (_object_t*)((_tuple3_t*)*l)->e2;
|
||||||
val = (_object_t*)((_tuple3_t*)*l)->e3;
|
val = (_object_t*)((_tuple3_t*)*l)->e3;
|
||||||
|
|
||||||
|
if(fst && fst->type == _DT_VAR) fst = fst->data.variable->data;
|
||||||
|
if(scd && scd->type == _DT_VAR) scd = scd->data.variable->data;
|
||||||
if(!fst || !scd) {
|
if(!fst || !scd) {
|
||||||
_handle_error_on_obj(s, SE_RN_SYNTAX, 0, TON(l), MB_FUNC_ERR, _exit, result);
|
_handle_error_on_obj(s, SE_RN_SYNTAX, 0, TON(l), MB_FUNC_ERR, _exit, result);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user