Statement macro
Signals an error if the expression passed to it evaluates to false -- but only when the code is compiled in interactive development mode.
debug-assert expression format-string [ format-arg ]* => false
debug-assert expression => false
#f.
common-extensions
common-extensions
Signals an error if expression evaluates to false -- but only when the code is compiled in debugging mode.
An assertion or "assert" is a simple and popular development tool for testing conditions in program code.
This macro is identical to assert, except that the assert is defined to take place only while debugging.
The Functional Developer compiler removes debug-assertions when it compiles code in "production" mode as opposed to "debugging" mode.
The format-string is a format string as defined on page 112 of the DRM.