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

Function lua_load

lua/lapi.c:869–879  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

867
868
869LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
870 const char *chunkname) {
871 ZIO z;
872 int status;
873 lua_lock(L);
874 if (!chunkname) chunkname = "?";
875 luaZ_init(L, &z, reader, data);
876 status = luaD_protectedparser(L, &z, chunkname);
877 lua_unlock(L);
878 return status;
879}
880
881
882LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {

Callers 3

luaB_loadFunction · 0.85
luaL_loadfileFunction · 0.85
luaL_loadbufferFunction · 0.85

Calls 2

luaZ_initFunction · 0.85
luaD_protectedparserFunction · 0.85

Tested by

no test coverage detected