guanaqo 1.0.0-alpha.24
Utilities for scientific software
Loading...
Searching...
No Matches
assume.hpp File Reference

Detailed Description

Assertion and assumption macros with debug/release semantics.

Definition in file assume.hpp.

#include <guanaqo/stringify.h>
#include <stdexcept>
Include dependency graph for assume.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define GUANAQO_DEBUG_ASSERT(x)
 Check the expression x (in debug mode only).
#define GUANAQO_ASSERT(x)
 Check the expression x (regardless of debug or release mode).
#define GUANAQO_ASSUME(x)
 Invokes undefined behavior if the expression x does not evaluate to true.