MCPcopy Create free account
hub / github.com/BZFlag-Dev/bzflag / lua_load

Function lua_load

other_src/lua/src/lapi.cpp:898–908  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

896
897
898LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
899 const char *chunkname) {
900 ZIO z;
901 int status;
902 lua_lock(L);
903 if (!chunkname) chunkname = "?";
904 luaZ_init(L, &z, reader, data);
905 status = luaD_protectedparser(L, &z, chunkname);
906 lua_unlock(L);
907 return status;
908}
909
910
911LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {

Callers 3

luaL_loadfileFunction · 0.70
luaL_loadbufferFunction · 0.70
luaB_loadFunction · 0.70

Calls 2

luaZ_initFunction · 0.70
luaD_protectedparserFunction · 0.70

Tested by

no test coverage detected