MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / varerror

Function varerror

extlibs/lua/src/lfunc.c:130–135  ·  view source on GitHub ↗

** Raise an error with message 'msg', inserting the name of the ** local variable at position 'level' in the stack. */

Source from the content-addressed store, hash-verified

128** local variable at position 'level' in the stack.
129*/
130static void varerror (lua_State *L, StkId level, const char *msg) {
131 int idx = cast_int(level - L->ci->func);
132 const char *vname = luaG_findlocal(L, L->ci, idx, NULL);
133 if (vname == NULL) vname = "?";
134 luaG_runerror(L, msg, vname);
135}
136
137
138/*

Callers 2

callclosemthFunction · 0.85
luaF_newtbcupvalFunction · 0.85

Calls 2

luaG_findlocalFunction · 0.85
luaG_runerrorFunction · 0.85

Tested by

no test coverage detected