MCPcopy Create free account
hub / github.com/CppCXY/EmmyLuaCodeStyle / luaB_dofile

Function luaB_dofile

3rd/lua-5.4.3/src/lbaselib.c:394–401  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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