MCPcopy Create free account
hub / github.com/Tencent/UnLua / lua_error

Function lua_error

Plugins/UnLua/Source/ThirdParty/Lua/lua-5.4.3/src/lapi.c:1230–1242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1228
1229
1230LUA_API int lua_error (lua_State *L) {
1231 TValue *errobj;
1232 lua_lock(L);
1233 errobj = s2v(L->top - 1);
1234 api_checknelems(L, 1);
1235 /* error object is the memory error message? */
1236 if (ttisshrstring(errobj) && eqshrstr(tsvalue(errobj), G(L)->memerrmsg))
1237 luaM_error(L); /* raise a memory error */
1238 else
1239 luaG_errormsg(L); /* raise a regular error */
1240 /* code unreachable; will unlock when control actually leaves the kernel */
1241 return 0; /* to avoid warnings */
1242}
1243
1244
1245LUA_API int lua_next (lua_State *L, int idx) {

Callers 11

base_openFunction · 0.85
auxiliar_tostringFunction · 0.85
finalizeFunction · 0.85
protected_finishFunction · 0.85
lpb_addtypeFunction · 0.85
luaB_errorFunction · 0.85
luaB_dofileFunction · 0.85
runCFunction · 0.85
luaL_errorFunction · 0.85
resizeboxFunction · 0.85
luaB_auxwrapFunction · 0.85

Calls 1

luaG_errormsgFunction · 0.85

Tested by 1

runCFunction · 0.68