MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / report

Function report

lib/lua/src/lua.c:120–129  ·  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

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

Callers 6

dochunkFunction · 0.85
dolibraryFunction · 0.85
handle_scriptFunction · 0.85
doREPLFunction · 0.85
mainFunction · 0.85
runTestConnectionMethod · 0.85

Calls 1

l_messageFunction · 0.85

Tested by

no test coverage detected