Added 'local' support for 'proto', fixed DOS bug in proto parser

This commit is contained in:
2021-01-31 12:06:20 -06:00
parent 300ffb89e9
commit 3a28de6b2a
2 changed files with 27 additions and 6 deletions

View File

@@ -307,7 +307,7 @@ bool callCValue(CState *state, CValue func, int args, int nresults, int offset)
#endif
if (!IS_OBJ(func)) {
cosmoV_error(state, "Cannot call non-function type %s!", cosmoV_typeStr(func));
cosmoV_error(state, "Cannot call non-callable type %s!", cosmoV_typeStr(func));
return false;
}
@@ -350,7 +350,7 @@ bool callCValue(CState *state, CValue func, int args, int nresults, int offset)
break;
}
default:
cosmoV_error(state, "Cannot call non-function type %s!", cosmoV_typeStr(func));
cosmoV_error(state, "Cannot call non-callable type %s!", cosmoV_typeStr(func));
return false;
}