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

Function report

third-party/lua-5.5.0/src/lua.c:121–130  ·  view source on GitHub ↗

** Check whether 'status' is not OK and, if so, prints the error ** message on the top of the stack. */

Source from the content-addressed store, hash-verified

119** message on the top of the stack.
120*/
121static int report (lua_State *L, int status) {
122 if (status != LUA_OK) {
123 const char *msg = lua_tostring(L, -1);
124 if (msg == NULL)
125 msg = "(error message not a string)";
126 l_message(progname, msg);
127 lua_pop(L, 1); /* remove message */
128 }
129 return status;
130}
131
132
133/*

Callers 5

dochunkFunction · 0.70
dolibraryFunction · 0.70
handle_scriptFunction · 0.70
doREPLFunction · 0.70
mainFunction · 0.70

Calls 1

l_messageFunction · 0.70

Tested by

no test coverage detected