MCPcopy Create free account
hub / github.com/defold/defold / luaU_undump

Function luaU_undump

engine/lua/src/lua/lundump.c:195–209  ·  view source on GitHub ↗

** load precompiled chunk */

Source from the content-addressed store, hash-verified

193** load precompiled chunk
194*/
195Proto* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name)
196{
197 LoadState S;
198 if (*name=='@' || *name=='=')
199 S.name=name+1;
200 else if (*name==LUA_SIGNATURE[0])
201 S.name="binary string";
202 else
203 S.name=name;
204 S.L=L;
205 S.Z=Z;
206 S.b=buff;
207 LoadHeader(&S);
208 return LoadFunction(&S,luaS_newliteral(L,"=?"));
209}
210
211/*
212* make header

Callers

nothing calls this directly

Calls 2

LoadHeaderFunction · 0.85
LoadFunctionFunction · 0.70

Tested by

no test coverage detected