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

Function luaB_load

lua/lbaselib.c:323–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

321
322
323static int luaB_load (lua_State *L) {
324 int status;
325 const char *cname = luaL_optstring(L, 2, "=(load)");
326 luaL_checktype(L, 1, LUA_TFUNCTION);
327 lua_settop(L, 3); /* function, eventual name, plus one reserved slot */
328 status = lua_load(L, generic_reader, NULL, cname);
329 return load_aux(L, status);
330}
331
332
333static int luaB_dofile (lua_State *L) {

Callers

nothing calls this directly

Calls 4

luaL_checktypeFunction · 0.85
lua_settopFunction · 0.85
lua_loadFunction · 0.85
load_auxFunction · 0.85

Tested by

no test coverage detected