MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / report

Function report

deps/lua/src/lua.c:65–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63
64
65static int report (lua_State *L, int status) {
66 if (status && !lua_isnil(L, -1)) {
67 const char *msg = lua_tostring(L, -1);
68 if (msg == NULL) msg = "(error object is not a string)";
69 l_message(progname, msg);
70 lua_pop(L, 1);
71 }
72 return status;
73}
74
75
76static int traceback (lua_State *L) {

Callers 6

dofileFunction · 0.85
dostringFunction · 0.85
dolibraryFunction · 0.85
dottyFunction · 0.85
handle_scriptFunction · 0.85
mainFunction · 0.85

Calls 1

l_messageFunction · 0.85

Tested by

no test coverage detected