MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / lua_error

Function lua_error

third-party/lua-5.5.0/src/lapi.c:1252–1264  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1250
1251
1252LUA_API int lua_error (lua_State *L) {
1253 TValue *errobj;
1254 lua_lock(L);
1255 errobj = s2v(L->top.p - 1);
1256 api_checkpop(L, 1);
1257 /* error object is the memory error message? */
1258 if (ttisshrstring(errobj) && eqshrstr(tsvalue(errobj), G(L)->memerrmsg))
1259 luaM_error(L); /* raise a memory error */
1260 else
1261 luaG_errormsg(L); /* raise a regular error */
1262 /* code unreachable; will unlock when control actually leaves the kernel */
1263 return 0; /* to avoid warnings */
1264}
1265
1266
1267LUA_API int lua_next (lua_State *L, int idx) {

Callers 5

luaB_errorFunction · 0.70
luaB_dofileFunction · 0.70
luaL_errorFunction · 0.70
resizeboxFunction · 0.70
luaB_auxwrapFunction · 0.70

Calls 1

luaG_errormsgFunction · 0.70

Tested by

no test coverage detected