DEBUG (-- debugCondition)

Inputs

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

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