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

Function finalreport

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

the next function is called unprotected, so it must avoid errors */

Source from the content-addressed store, hash-verified

147
148/* the next function is called unprotected, so it must avoid errors */
149static void finalreport (lua_State *L, int status) {
150 if (status != LUA_OK) {
151 const char *msg = (lua_type(L, -1) == LUA_TSTRING) ? lua_tostring(L, -1)
152 : NULL;
153 if (msg == NULL) msg = "(error object is not a string)";
154 l_message(progname, msg);
155 lua_pop(L, 1);
156 }
157}
158
159
160static int traceback (lua_State *L) {

Callers 1

mainFunction · 0.85

Calls 2

lua_typeFunction · 0.70
l_messageFunction · 0.70

Tested by

no test coverage detected