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

Function luaD_seterrorobj

Source/Misc/lua/src/lua.c:5197–5214  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5195
5196
5197void luaD_seterrorobj (lua_State *L, int errcode, StkId oldtop) {
5198switch (errcode) {
5199case LUA_ERRMEM: {
5200setsvalue2s(L, oldtop, luaS_newliteral(L, MEMERRMSG));
5201break;
5202}
5203case LUA_ERRERR: {
5204setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling"));
5205break;
5206}
5207case LUA_ERRSYNTAX:
5208case LUA_ERRRUN: {
5209setobjs2s(L, oldtop, L->top - 1); /* error message on current top */
5210break;
5211}
5212}
5213L->top = oldtop + 1;
5214}
5215
5216
5217static void restore_stack_limit (lua_State *L) {

Callers 3

resetstackFunction · 0.85
lua_resumeFunction · 0.85
luaD_pcallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected