Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DFHack/dfhack
/ ok
Method
ok
library/Core.cpp:231–231 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
229
CommandDepthCounter() { depth++; }
230
~CommandDepthCounter() { depth--; }
231
bool ok() { return depth < MAX_DEPTH; }
232
};
233
thread_local int CommandDepthCounter::depth = 0;
234
Callers
1
runCommand
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected