MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaD_throw

Function luaD_throw

Source/Misc/lua/src/lua.c:5240–5254  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5238
5239
5240void luaD_throw (lua_State *L, int errcode) {
5241if (L->errorJmp) {
5242L->errorJmp->status = errcode;
5243LUAI_THROW(L, L->errorJmp);
5244}
5245else {
5246L->status = cast_byte(errcode);
5247if (G(L)->panic) {
5248resetstack(L, errcode);
5249lua_unlock(L);
5250G(L)->panic(L);
5251}
5252exit(EXIT_FAILURE);
5253}
5254}
5255
5256
5257int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud) {

Callers 6

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

Calls 2

resetstackFunction · 0.85
exitFunction · 0.50

Tested by

no test coverage detected