MCPcopy Create free account
hub / github.com/crownengine/crown / report

Function report

src/lua/lua_environment.cpp:183–191  ·  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

181** is a string, as it was either generated by Lua or by 'msghandler'.
182*/
183int report(lua_State *L, int status)
184{
185 if (status != LUA_OK) {
186 const char *msg = lua_tostring(L, -1);
187 loge(LUA, msg);
188 lua_pop(L, 1); /* remove message */
189 }
190 return status;
191}
192
193static int loader(lua_State *L)
194{

Callers 10

loaderFunction · 0.70
do_fileMethod · 0.70
requireMethod · 0.70
executeMethod · 0.70
execute_stringMethod · 0.70
call_globalMethod · 0.70
do_REPLFunction · 0.70
broadcastFunction · 0.50
multicastFunction · 0.50
unicastFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected