|
guanaqo
1.0.0-alpha.24
Utilities for scientific software
|
Public-facing preprocessor utilities.
Files | |
| file | assume.hpp |
| Assertion and assumption macros with debug/release semantics. | |
| file | compiler.h |
| Compiler feature detection helpers. | |
| file | openmp.h |
| OpenMP helpers. | |
| file | preprocessor.h |
| Token concatenation and argument-counting helpers. | |
| file | stringify.h |
| Stringify and token concatenation helpers. | |
Macros | |
| #define | GUANAQO_ASSUME(x) |
Invokes undefined behavior if the expression x does not evaluate to true. | |
| #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_OMP(X) |
Emit the OpenMP pragma X if OpenMP is enabled. | |
| #define | GUANAQO_OMP_IF_ELSE(X, Y) |
Emit X if OpenMP is enabled, otherwise emit Y. | |
| #define | GUANAQO_OMP_IF(X) |
Emit X if OpenMP is enabled, otherwise emit nothing. | |
| #define | GUANAQO_CONCATENATE_TOKENS(a, b) |
| Concatenate the given tokens. | |
| #define | GUANAQO_JOIN_TOKENS(...) |
| Join the given tokens with underscores. | |
| #define | GUANAQO_JOIN_STRINGS(sep, ...) |
| Join the given strings with the given separator. | |
| #define | GUANAQO_NOOP() |
| A no-op statement (swallows a semicolon without causing warnings about empty statements). | |
| #define | GUANAQO_CAT(a, b) |
| Concatenate the given tokens. | |
| #define | GUANAQO_STRINGIFY(s) |
| Convert the given token to a string literal. | |
| #define GUANAQO_ASSUME | ( | x | ) |
#include <guanaqo/assume.hpp>
Invokes undefined behavior if the expression x does not evaluate to true.
| std::logic_error | in debug mode if x is false. |
Definition at line 69 of file assume.hpp.
| #define GUANAQO_DEBUG_ASSERT | ( | x | ) |
#include <guanaqo/assume.hpp>
Check the expression x (in debug mode only).
| std::logic_error | in debug mode if x is false. |
Definition at line 53 of file assume.hpp.
| #define GUANAQO_ASSERT | ( | x | ) |
#include <guanaqo/assume.hpp>
Check the expression x (regardless of debug or release mode).
| std::logic_error | if x is false. |
Definition at line 61 of file assume.hpp.
| #define GUANAQO_OMP | ( | X | ) |
#include <guanaqo/openmp.h>
Emit the OpenMP pragma X if OpenMP is enabled.
| #define GUANAQO_OMP_IF_ELSE | ( | X, | |
| Y ) |
| #define GUANAQO_OMP_IF | ( | X | ) |
#include <guanaqo/openmp.h>
Emit X if OpenMP is enabled, otherwise emit nothing.
| #define GUANAQO_CONCATENATE_TOKENS | ( | a, | |
| b ) |
#include <guanaqo/preprocessor.h>
Concatenate the given tokens.
Definition at line 11 of file preprocessor.h.
| #define GUANAQO_JOIN_TOKENS | ( | ... | ) |
#include <guanaqo/preprocessor.h>
Join the given tokens with underscores.
Definition at line 23 of file preprocessor.h.
| #define GUANAQO_JOIN_STRINGS | ( | sep, | |
| ... ) |
#include <guanaqo/preprocessor.h>
Join the given strings with the given separator.
Definition at line 45 of file preprocessor.h.
| #define GUANAQO_NOOP | ( | ) |
#include <guanaqo/preprocessor.h>
A no-op statement (swallows a semicolon without causing warnings about empty statements).
Definition at line 66 of file preprocessor.h.
| #define GUANAQO_CAT | ( | a, | |
| b ) |
#include <guanaqo/stringify.h>
Concatenate the given tokens.
Definition at line 9 of file stringify.h.
| #define GUANAQO_STRINGIFY | ( | s | ) |
#include <guanaqo/stringify.h>
Convert the given token to a string literal.
Definition at line 13 of file stringify.h.