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

Function luaB_loadstring

deps/lua/src/lbaselib.c:277–282  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

275
276
277static int luaB_loadstring (lua_State *L) {
278 size_t l;
279 const char *s = luaL_checklstring(L, 1, &l);
280 const char *chunkname = luaL_optstring(L, 2, s);
281 return load_aux(L, luaL_loadbuffer(L, s, l, chunkname));
282}
283
284
285static int luaB_loadfile (lua_State *L) {

Callers

nothing calls this directly

Calls 3

luaL_checklstringFunction · 0.85
load_auxFunction · 0.85
luaL_loadbufferFunction · 0.85

Tested by

no test coverage detected