MCPcopy Create free account
hub / github.com/ObEngine/ObEngine / luaB_dofile

Function luaB_dofile

extlibs/lua/src/lbaselib.c:393–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391
392
393static int luaB_dofile (lua_State *L) {
394 const char *fname = luaL_optstring(L, 1, NULL);
395 lua_settop(L, 1);
396 if (luaL_loadfile(L, fname) != LUA_OK)
397 return lua_error(L);
398 lua_callk(L, 0, LUA_MULTRET, 0, dofilecont);
399 return dofilecont(L, 0, 0);
400}
401
402
403static 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