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

Function lua_error

third-party/lua-5.4.6/src/lapi.c:1238–1250  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1236
1237
1238LUA_API int lua_error (lua_State *L) {
1239 TValue *errobj;
1240 lua_lock(L);
1241 errobj = s2v(L->top.p - 1);
1242 api_checknelems(L, 1);
1243 /* error object is the memory error message? */
1244 if (ttisshrstring(errobj) && eqshrstr(tsvalue(errobj), G(L)->memerrmsg))
1245 luaM_error(L); /* raise a memory error */
1246 else
1247 luaG_errormsg(L); /* raise a regular error */
1248 /* code unreachable; will unlock when control actually leaves the kernel */
1249 return 0; /* to avoid warnings */
1250}
1251
1252
1253LUA_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