*developing lambda, added support for return from a lambda without a return statement.
This commit is contained in:
parent
6033366ec1
commit
9ebaeffa5d
@ -10308,6 +10308,14 @@ int _core_close_bracket(mb_interpreter_t* s, void** l) {
|
||||
/* Operator ) */
|
||||
int result = MB_FUNC_OK;
|
||||
|
||||
#ifdef MB_ENABLE_LAMBDA
|
||||
if(s->last_routine && s->last_routine->type == _IT_LAMBDA) {
|
||||
result = _core_return(s, l);
|
||||
|
||||
goto _exit;
|
||||
}
|
||||
#endif /* MB_ENABLE_LAMBDA */
|
||||
|
||||
_do_nothing(s, l, _exit, result);
|
||||
|
||||
_exit:
|
||||
|
Loading…
x
Reference in New Issue
Block a user