MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / report

Function report

src/Chain/libraries/glua/lua.cpp:164–171  ·  view source on GitHub ↗

** Check whether 'status' is not OK and, if so, prints the error ** message on the top of the stack. It assumes that the error object ** is a string, as it was either generated by Lua or by 'msghandler'. */

Source from the content-addressed store, hash-verified

162** is a string, as it was either generated by Lua or by 'msghandler'.
163*/
164static int report(lua_State *L, int status) {
165 if (status != LUA_OK) {
166 const char *msg = lua_tostring(L, -1);
167 l_message(progname, msg);
168 lua_pop(L, 1); /* remove message */
169 }
170 return status;
171}
172
173
174/*

Callers 7

dochunkFunction · 0.70
dolibraryFunction · 0.70
doREPLFunction · 0.70
handle_scriptFunction · 0.70
main1Function · 0.70
reportMethod · 0.50
evaluateMethod · 0.50

Calls 1

l_messageFunction · 0.70

Tested by 2

reportMethod · 0.40
evaluateMethod · 0.40