MCPcopy Create free account
hub / github.com/crawl/crawl / userfunc_collectgarbage

Function userfunc_collectgarbage

crawl-ref/source/macro.cc:173–180  ·  view source on GitHub ↗

Expensive function to discard unused function names

Source from the content-addressed store, hash-verified

171
172// Expensive function to discard unused function names
173static void userfunc_collectgarbage()
174{
175 for (int i = userfunctions.size() - 1; i >= 0; --i)
176 {
177 if (!userfunctions.empty() && !userfunc_referenced(i))
178 userfunctions[i].clear();
179 }
180}
181
182static int userfunc_getindex(const string &fname)
183{

Callers 1

userfunc_getindexFunction · 0.85

Calls 4

userfunc_referencedFunction · 0.85
sizeMethod · 0.45
emptyMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected