MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / luaU_dump

Function luaU_dump

deps/lua/src/ldump.c:153–164  ·  view source on GitHub ↗

** dump Lua function as precompiled chunk */

Source from the content-addressed store, hash-verified

151** dump Lua function as precompiled chunk
152*/
153int luaU_dump (lua_State* L, const Proto* f, lua_Writer w, void* data, int strip)
154{
155 DumpState D;
156 D.L=L;
157 D.writer=w;
158 D.data=data;
159 D.strip=strip;
160 D.status=0;
161 DumpHeader(&D);
162 DumpFunction(f,NULL,&D);
163 return D.status;
164}

Callers 2

pmainFunction · 0.70
lua_dumpFunction · 0.70

Calls 2

DumpHeaderFunction · 0.85
DumpFunctionFunction · 0.85

Tested by

no test coverage detected