MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / exhausted

Function exhausted

codegraph-kernel/src/stack.rs:149–161  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147/// lazily from the current position.
148#[inline(always)]
149pub fn exhausted() -> bool {
150 let threshold = THRESHOLD.with(|t| t.get());
151 if threshold == 0 {
152 begin();
153 return exhausted();
154 }
155 if current_sp() < threshold {
156 OVERFLOWED.with(|o| o.set(true));
157 true
158 } else {
159 false
160 }
161}
162
163/// Whether the guard tripped since the last `begin()`.
164pub fn overflowed() -> bool {

Callers

nothing calls this directly

Calls 5

beginFunction · 0.85
current_spFunction · 0.85
withMethod · 0.80
getMethod · 0.65
setMethod · 0.45

Tested by

no test coverage detected