MCPcopy Create free account
hub / github.com/bloomberg/comdb2 / luaB_dofile

Function luaB_dofile

lua/lbaselib.c:333–339  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

331
332
333static int luaB_dofile (lua_State *L) {
334 const char *fname = luaL_optstring(L, 1, NULL);
335 int n = lua_gettop(L);
336 if (luaL_loadfile(L, fname) != 0) lua_error(L);
337 lua_call(L, 0, LUA_MULTRET);
338 return lua_gettop(L) - n;
339}
340
341
342static 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