MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaD_throw

Function luaD_throw

deps/lua/src/ldo.c:94–108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92
93
94void luaD_throw (lua_State *L, int errcode) {
95 if (L->errorJmp) {
96 L->errorJmp->status = errcode;
97 LUAI_THROW(L, L->errorJmp);
98 }
99 else {
100 L->status = cast_byte(errcode);
101 if (G(L)->panic) {
102 resetstack(L, errcode);
103 lua_unlock(L);
104 G(L)->panic(L);
105 }
106 exit(EXIT_FAILURE);
107 }
108}
109
110
111int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {

Callers 6

luaM_realloc_Function · 0.85
luaX_lexerrorFunction · 0.85
errorFunction · 0.85
luaG_errormsgFunction · 0.85
growCIFunction · 0.85
luaD_callFunction · 0.85

Calls 1

resetstackFunction · 0.85

Tested by

no test coverage detected