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

Function luaB_load

deps/lua/src/lbaselib.c:315–322  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

313
314
315static int luaB_load (lua_State *L) {
316 int status;
317 const char *cname = luaL_optstring(L, 2, "=(load)");
318 luaL_checktype(L, 1, LUA_TFUNCTION);
319 lua_settop(L, 3); /* function, eventual name, plus one reserved slot */
320 status = lua_load(L, generic_reader, NULL, cname);
321 return load_aux(L, status);
322}
323
324
325static 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