MCPcopy Create free account
hub / github.com/DFHack/dfhack / luaU_dump

Function luaU_dump

depends/lua/src/ldump.c:202–214  ·  view source on GitHub ↗

** dump Lua function as precompiled chunk */

Source from the content-addressed store, hash-verified

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

Callers 2

pmainFunction · 0.85
lua_dumpFunction · 0.85

Calls 3

DumpHeaderFunction · 0.85
DumpByteFunction · 0.85
DumpFunctionFunction · 0.85

Tested by

no test coverage detected