assert

Assert

In Cyan, we have a simple method to check the validity of an evaluated expression. Macro assert generates code that checks at runtime whether its argument is true. It issues a warning if it is not.

assert 1 – 1 == 0; // ok
assert 0 == 1; // runtime error