MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / luaU_dump

Function luaU_dump

src/Chain/libraries/glua/ldump.cpp:206–218  ·  view source on GitHub ↗

** dump Lua function as precompiled chunk */

Source from the content-addressed store, hash-verified

204** dump Lua function as precompiled chunk
205*/
206int luaU_dump(lua_State *L, const Proto *f, lua_Writer w, void *data,
207 int strip) {
208 DumpState D;
209 D.L = L;
210 D.writer = w;
211 D.data = data;
212 D.strip = strip;
213 D.status = 0;
214 DumpHeader(&D);
215 DumpByte(f->sizeupvalues, &D);
216 DumpFunction(f, nullptr, &D);
217 return D.status;
218}
219

Callers 3

pmainFunction · 0.85
lua_common_compileFunction · 0.85
lua_dumpFunction · 0.85

Calls 3

DumpHeaderFunction · 0.85
DumpByteFunction · 0.85
DumpFunctionFunction · 0.85

Tested by

no test coverage detected