MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / errorlimit

Function errorlimit

third-party/lua-5.2.4/src/lparser.c:83–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

81
82
83static l_noret errorlimit (FuncState *fs, int limit, const char *what) {
84 lua_State *L = fs->ls->L;
85 const char *msg;
86 int line = fs->f->linedefined;
87 const char *where = (line == 0)
88 ? "main function"
89 : luaO_pushfstring(L, "function at line %d", line);
90 msg = luaO_pushfstring(L, "too many %s (limit is %d) in %s",
91 what, limit, where);
92 luaX_syntaxerror(fs->ls, msg);
93}
94
95
96static void checklimit (FuncState *fs, int v, int l, const char *what) {

Callers 1

checklimitFunction · 0.70

Calls 2

luaO_pushfstringFunction · 0.70
luaX_syntaxerrorFunction · 0.70

Tested by

no test coverage detected