MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaD_throw

Function luaD_throw

lua/ldo.c:95–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

93
94
95void luaD_throw (lua_State *L, int errcode) {
96 if (L->errorJmp) {
97 L->errorJmp->status = errcode;
98 LUAI_THROW(L, L->errorJmp);
99 }
100 else {
101 L->status = cast_byte(errcode);
102 if (G(L)->panic) {
103 resetstack(L, errcode);
104 lua_unlock(L);
105 G(L)->panic(L);
106 }
107 exit(EXIT_FAILURE);
108 }
109}
110
111
112int 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 2

resetstackFunction · 0.85
exitFunction · 0.85

Tested by

no test coverage detected