MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / report

Function report

libraries/AP_Scripting/lua/src/lua.c:167–174  ·  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

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

Callers 5

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

Calls 1

l_messageFunction · 0.85

Tested by

no test coverage detected