DEBUG (-- debugCondition)
Inputs
- None.
Outputs
It pushes a known Cond object that reflects the program's debug-mode setting.
It does not affect later declarations or scope state.
Behavior
- The exact value depends on the active debug-mode setting.
- Because the result is known, it drives compile-time condition handling.
Example
{} 0 {} [
"-- DEBUG is a known Cond --" printCompilerMessage
DEBUG known? printStack _:;
"-- DEBUG is either TRUE or FALSE --" printCompilerMessage
DEBUG FALSE = DEBUG TRUE = or printStack _:;
0
] "main" exportFunction
Expected Output During Compilation
-- DEBUG is a known Cond --
TRUE
-- DEBUG is either TRUE or FALSE --
TRUE
See also
FALSEbuiltin(-- falseCondition)Pushes the false condition object.TRUEbuiltin(-- trueCondition)Pushes the true condition object.ifbuiltin(inputs... condition trueCallable falseCallable -- outputs...)Calls one of two Blocks; unknown conditions require both branches to be compiled and merged.uifbuiltin(inputs... condition trueCallable falseCallable -- outputs...)Processes one of two Blocks inline, depending on a known Cond object.