MCPcopy Create free account
hub / github.com/defold/defold / errorlimit

Function errorlimit

engine/lua/src/lua/lparser.c:71–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69
70
71static void errorlimit (FuncState *fs, int limit, const char *what) {
72 const char *msg = (fs->f->linedefined == 0) ?
73 luaO_pushfstring(fs->L, "main function has more than %d %s", limit, what) :
74 luaO_pushfstring(fs->L, "function at line %d has more than %d %s",
75 fs->f->linedefined, limit, what);
76 luaX_lexerror(fs->ls, msg, 0);
77}
78
79
80static int testnext (LexState *ls, int c) {

Callers

nothing calls this directly

Calls 2

luaO_pushfstringFunction · 0.85
luaX_lexerrorFunction · 0.85

Tested by

no test coverage detected