MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / errorlimit

Function errorlimit

Source/Misc/lua/src/lua.c:7647–7653  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7645
7646
7647static void errorlimit (FuncState *fs, int limit, const char *what) {
7648const char *msg = (fs->f->linedefined == 0) ?
7649luaO_pushfstring(fs->L, "main function has more than %d %s", limit, what) :
7650luaO_pushfstring(fs->L, "function at line %d has more than %d %s",
7651fs->f->linedefined, limit, what);
7652luaX_lexerror(fs->ls, msg, 0);
7653}
7654
7655
7656static 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