MCPcopy Create free account
hub / github.com/F-Stack/f-stack / errorlimit

Function errorlimit

freebsd/contrib/openzfs/module/lua/lparser.c: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.70

Calls 2

luaO_pushfstringFunction · 0.70
luaX_syntaxerrorFunction · 0.70

Tested by

no test coverage detected