mirror of
https://gitee.com/Lyon1998/pikapython.git
synced 2025-01-29 17:22:56 +08:00
use argName[0] to check run arg num
This commit is contained in:
parent
b5e7562af3
commit
5caa931170
@ -258,14 +258,15 @@ static Arg* VM_instruction_handler_RUN(PikaObj* self, VMState* vs, char* data) {
|
||||
char* argDef = strPopLastToken(type_list, ',');
|
||||
strPopLastToken(argDef, ':');
|
||||
char* argName = argDef;
|
||||
if (strEqu(argName, "")) {
|
||||
/* reach the end */
|
||||
if (0 == argName[0]) {
|
||||
break;
|
||||
}
|
||||
call_arg = stack_popArg(vs->sSuper);
|
||||
call_arg = arg_setName(call_arg, argName);
|
||||
args_setArg(sub_locals->list, call_arg);
|
||||
call_arg_index++;
|
||||
/* reach the end */
|
||||
/* reach the last */
|
||||
if (argDef == type_list) {
|
||||
break;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user