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

Function errorlimit

extlibs/lua/src/lparser.c:74–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

72
73
74static l_noret errorlimit (FuncState *fs, int limit, const char *what) {
75 lua_State *L = fs->ls->L;
76 const char *msg;
77 int line = fs->f->linedefined;
78 const char *where = (line == 0)
79 ? "main function"
80 : luaO_pushfstring(L, "function at line %d", line);
81 msg = luaO_pushfstring(L, "too many %s (limit is %d) in %s",
82 what, limit, where);
83 luaX_syntaxerror(fs->ls, msg);
84}
85
86
87static void checklimit (FuncState *fs, int v, int l, const char *what) {

Callers 1

checklimitFunction · 0.85

Calls 2

luaO_pushfstringFunction · 0.85
luaX_syntaxerrorFunction · 0.85

Tested by

no test coverage detected