MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaB_dofile

Function luaB_dofile

deps/lua/src/lbaselib.c:325–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

323
324
325static int luaB_dofile (lua_State *L) {
326 const char *fname = luaL_optstring(L, 1, NULL);
327 int n = lua_gettop(L);
328 if (luaL_loadfile(L, fname) != 0) lua_error(L);
329 lua_call(L, 0, LUA_MULTRET);
330 return lua_gettop(L) - n;
331}
332
333
334static 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