MCPcopy Create free account
hub / github.com/EmmyLua/EmmyLuaDebugger / traceback

Function traceback

third-party/lua-5.2.4/src/lua.c:160–169  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158
159
160static int traceback (lua_State *L) {
161 const char *msg = lua_tostring(L, 1);
162 if (msg)
163 luaL_traceback(L, L, msg, 1);
164 else if (!lua_isnoneornil(L, 1)) { /* is there an error object? */
165 if (!luaL_callmeta(L, 1, "__tostring")) /* try its 'tostring' metamethod */
166 lua_pushliteral(L, "(no error message)");
167 }
168 return 1;
169}
170
171
172static int docall (lua_State *L, int narg, int nres) {

Callers

nothing calls this directly

Calls 2

luaL_tracebackFunction · 0.70
luaL_callmetaFunction · 0.70

Tested by

no test coverage detected