Skip to main content

BAKED_CALL_DEPTH

Constant BAKED_CALL_DEPTH 

Source
pub const BAKED_CALL_DEPTH: i64 = 2_500;
Expand description

The kernel’s locked maximum LOGOS call depth, BAKED into the precise and self call stencils (their holes are all spoken for, so the limit cannot be a runtime hole). It mirrors logicaffeine_compile::semantics::MAX_CALL_DEPTH and the matching constant in stencils/int_stencils.rs; the callers in the JIT crate pass that same value, asserted here at stencil selection so a drift fails loudly instead of silently capping native recursion at the wrong depth (which would diverge from the kernel’s depth-exceeded error).