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

Function luaU_undump

Source/Misc/lua/src/lua.c:10098–10112  ·  view source on GitHub ↗

** load precompiled chunk */

Source from the content-addressed store, hash-verified

10096** load precompiled chunk
10097*/
10098Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name)
10099{
10100LoadState S;
10101if (*name=='@' || *name=='=')
10102S.name=name+1;
10103else if (*name==LUA_SIGNATURE[0])
10104S.name="binary string";
10105else
10106S.name=name;
10107S.L=L;
10108S.Z=Z;
10109S.b=buff;
10110LoadHeader(&S);
10111return LoadFunction(&S,luaS_newliteral(L,"=?"));
10112}
10113
10114/*
10115* make header

Callers

nothing calls this directly

Calls 2

LoadHeaderFunction · 0.85
LoadFunctionFunction · 0.85

Tested by

no test coverage detected