fennec
Loading...
Searching...
No Matches
Assertions
Assertions

This header contains macros for making assertions about code behaviour.

fennec defines the following assert implementations:

Syntax Description

assert(expr, desc)

Make an assertion with expression expr and provide a description desc. Only halts in debug mode.


assertf(expr, desc)

Make an assertion with expression expr and provide a description desc. Always halts.


assertd(expr, desc)

Make an assertion, only in debug mode, with expression expr and provide a description desc. This should be used when the branching caused by assert would hinder performance in release mode.