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

Function lua_load

deps/lua/src/lapi.c:862–872  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

860
861
862LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
863 const char *chunkname) {
864 ZIO z;
865 int status;
866 lua_lock(L);
867 if (!chunkname) chunkname = "?";
868 luaZ_init(L, &z, reader, data);
869 status = luaD_protectedparser(L, &z, chunkname);
870 lua_unlock(L);
871 return status;
872}
873
874
875LUA_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