MCPcopy Create free account
hub / github.com/RomanKubiak/ctrlr / lua_load

Function lua_load

Source/Misc/lua/src/lua.c:2711–2721  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2709
2710
2711LUA_API int lua_load (lua_State *L, lua_Reader reader, void *data,
2712const char *chunkname) {
2713ZIO z;
2714int status;
2715lua_lock(L);
2716if (!chunkname) chunkname = "?";
2717luaZ_init(L, &z, reader, data);
2718status = luaD_protectedparser(L, &z, chunkname);
2719lua_unlock(L);
2720return status;
2721}
2722
2723
2724LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data) {

Callers 3

luaL_loadfileFunction · 0.85
luaL_loadbufferFunction · 0.85
luaB_loadFunction · 0.85

Calls 2

luaZ_initFunction · 0.85
luaD_protectedparserFunction · 0.85

Tested by

no test coverage detected