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

Function luaB_dofile

libraries/AP_Scripting/lua/src/lbaselib.c:365–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363
364
365static int luaB_dofile (lua_State *L) {
366 const char *fname = luaL_optstring(L, 1, NULL);
367 lua_settop(L, 1);
368 if (luaL_loadfile(L, fname) != LUA_OK)
369 return lua_error(L);
370 lua_callk(L, 0, LUA_MULTRET, 0, dofilecont);
371 return dofilecont(L, 0, 0);
372}
373
374
375static int luaB_assert (lua_State *L) {

Callers

nothing calls this directly

Calls 4

lua_settopFunction · 0.85
lua_errorFunction · 0.85
lua_callkFunction · 0.85
dofilecontFunction · 0.85

Tested by

no test coverage detected