MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / errorlimit

Function errorlimit

lua/lparser.c:72–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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