** 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'. */
| 181 | ** is a string, as it was either generated by Lua or by 'msghandler'. |
| 182 | */ |
| 183 | int 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 | |
| 193 | static int loader(lua_State *L) |
| 194 | { |
no outgoing calls
no test coverage detected