MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / geterrorobjstr

Function geterrorobjstr

src/Chain/libraries/glua/ldo.cpp:92–107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90};
91
92static std::string geterrorobjstr(lua_State *L, int errcode)
93{
94 switch (errcode) {
95 case LUA_ERRMEM: { /* memory error? */
96 return "memory error";
97 }
98 case LUA_ERRERR: {
99 return "error in error handling";
100 }
101 default: {
102 return lua_tolstring(L, -1, nullptr);
103 // setobjs2s(L, oldtop, L->top - 1); /* error message on current top */
104 }
105 }
106
107}
108
109
110static void seterrorobj(lua_State *L, int errcode, StkId oldtop) {

Callers 1

luaD_throwFunction · 0.85

Calls 1

lua_tolstringFunction · 0.85

Tested by

no test coverage detected