MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / errorlimit

Function errorlimit

src/Chain/libraries/glua/lparser.cpp:81–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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