MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / luaU_dump

Function luaU_dump

lib/lua/src/ldump.c:217–229  ·  view source on GitHub ↗

** dump Lua function as precompiled chunk */

Source from the content-addressed store, hash-verified

215** dump Lua function as precompiled chunk
216*/
217int luaU_dump(lua_State *L, const Proto *f, lua_Writer w, void *data,
218 int strip) {
219 DumpState D;
220 D.L = L;
221 D.writer = w;
222 D.data = data;
223 D.strip = strip;
224 D.status = 0;
225 dumpHeader(&D);
226 dumpByte(&D, f->sizeupvalues);
227 dumpFunction(&D, f, NULL);
228 return D.status;
229}
230

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