MCPcopy Create free account
hub / github.com/Tencent/sluaunreal / errorlimit

Function errorlimit

Plugins/slua_unreal/External/lua/lparser.cpp:77–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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