MCPcopy Create free account
hub / github.com/F-Stack/f-stack / seterrorobj

Function seterrorobj

freebsd/contrib/openzfs/module/lua/ldo.c:153–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152
153static void seterrorobj (lua_State *L, int errcode, StkId oldtop) {
154 switch (errcode) {
155 case LUA_ERRMEM: { /* memory error? */
156 setsvalue2s(L, oldtop, G(L)->memerrmsg); /* reuse preregistered msg. */
157 break;
158 }
159 case LUA_ERRERR: {
160 setsvalue2s(L, oldtop, luaS_newliteral(L, "error in error handling"));
161 break;
162 }
163 default: {
164 setobjs2s(L, oldtop, L->top - 1); /* error message on current top */
165 break;
166 }
167 }
168 L->top = oldtop + 1;
169}
170
171
172l_noret luaD_throw (lua_State *L, int errcode) {

Callers 3

recoverFunction · 0.85
lua_resumeFunction · 0.85
luaD_pcallFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected