MCPcopy Create free account
hub / github.com/DFHack/dfhack / ~cleaner

Method ~cleaner

plugins/devel/memutils.cpp:31–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29
30 struct cleaner {
31 ~cleaner()
32 {
33 if (state)
34 {
35 lua_close(state);
36 state = NULL;
37 }
38 if (out)
39 {
40 delete out;
41 out = NULL;
42 }
43 }
44 };
45
46 static cleaner g_cleaner;

Callers

nothing calls this directly

Calls 1

lua_closeFunction · 0.85

Tested by

no test coverage detected