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

Function lua_dump

depends/lua/src/lapi.c:1016–1028  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014
1015
1016LUA_API int lua_dump (lua_State *L, lua_Writer writer, void *data, int strip) {
1017 int status;
1018 TValue *o;
1019 lua_lock(L);
1020 api_checknelems(L, 1);
1021 o = L->top - 1;
1022 if (isLfunction(o))
1023 status = luaU_dump(L, getproto(o), writer, data, strip);
1024 else
1025 status = 1;
1026 lua_unlock(L);
1027 return status;
1028}
1029
1030
1031LUA_API int lua_status (lua_State *L) {

Callers 1

str_dumpFunction · 0.85

Calls 1

luaU_dumpFunction · 0.85

Tested by

no test coverage detected