*supports sub routine in PRINT.
This commit is contained in:
parent
987d0a2a81
commit
7f8a18c9b0
@ -7116,7 +7116,8 @@ int _std_print(mb_interpreter_t* s, void** l) {
|
|||||||
case _DT_STRING: /* Fall through */
|
case _DT_STRING: /* Fall through */
|
||||||
case _DT_VAR: /* Fall through */
|
case _DT_VAR: /* Fall through */
|
||||||
case _DT_ARRAY: /* Fall through */
|
case _DT_ARRAY: /* Fall through */
|
||||||
case _DT_FUNC:
|
case _DT_FUNC: /* Fall through */
|
||||||
|
case _DT_ROUTINE:
|
||||||
result = _calc_expression(s, &ast, &val_ptr);
|
result = _calc_expression(s, &ast, &val_ptr);
|
||||||
if(val_ptr->type == _DT_NIL) {
|
if(val_ptr->type == _DT_NIL) {
|
||||||
_get_printer(s)(MB_NIL);
|
_get_printer(s)(MB_NIL);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user