*developing lambda, added support for return from a lambda without a return statement.

This commit is contained in:
paladin-t 2016-01-07 20:53:39 +08:00
parent 6033366ec1
commit 9ebaeffa5d

View File

@ -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: