improve func parser

This commit is contained in:
lixianjing 2020-10-03 17:42:41 +08:00
parent fa515b26cd
commit 68504e4ec6

View File

@ -50,7 +50,7 @@ ret_t func_call_parser_parse(func_call_parser_t* parser) {
token = tokenizer_next(tokenizer);
tk_strncpy(name, token, TK_NAME_LEN);
ENSURE(tokenizer_has_more(tokenizer));
return_value_if_fail(tokenizer_has_more(tokenizer), RET_BAD_PARAMS);
token = tokenizer_next(tokenizer);
if (parser->on_param != NULL) {