Top Level Namespace

Defined in:

Macro Summary

Macro Detail

macro assert(cond, exc = nil) #

If cond is false, raise exc.

If exc is not provided, AssertionFailed will be raised instead with information about the faulty expression. If the expression is a comparison, the result of each side of the comparison will also be shown.


[View source]
macro debug_assert(cond, exc = nil) #

Assert only in debug mode


[View source]