MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / luaB_dofile

Function luaB_dofile

Source/Misc/lua/src/lua.c:11189–11195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11187
11188
11189static int luaB_dofile (lua_State *L) {
11190const char *fname = luaL_optstring(L, 1, NULL);
11191int n = lua_gettop(L);
11192if (luaL_loadfile(L, fname) != 0) lua_error(L);
11193lua_call(L, 0, LUA_MULTRET);
11194return lua_gettop(L) - n;
11195}
11196
11197
11198static int luaB_assert (lua_State *L) {

Callers

nothing calls this directly

Calls 4

lua_gettopFunction · 0.85
luaL_loadfileFunction · 0.85
lua_errorFunction · 0.85
lua_callFunction · 0.85

Tested by

no test coverage detected