Classes | |
struct | IntegrityCheck |
Namespaces | |
namespace | Ase |
namespace | Ase::Test |
Macros | |
#define | _(...) |
#define | ALIGNED16(pointer) |
#define | ALIGNMENT16(pointer) |
#define | APPLY_IDL_PROPERTY(lvalue, rvalue) |
#define | ARRAY_SIZE(array) |
#define | assert_paranoid(expr) |
#define | assert_return(expr, ...) |
#define | assert_return_unreached(...) |
#define | assert_unreached() |
#define | assert_warn(expr) |
#define | CLAMP(v, mi, ma) |
#define | CQUOTE(str) |
#define | if_constexpr |
#define | ISLIKELY(cond) |
#define | MAX(a, b) |
#define | MIN(a, b) |
#define | N_(str) |
#define | return_unless(cond, ...) |
#define | STRING_VECTOR_FROM_ARRAY(ConstCharArray) |
#define | TEST_BENCHMARK(FUNC) |
#define | TEST_INTEGRITY(FUNC) |
#define | UNLIKELY(cond) |
Variables | |
constexpr const bool | __DEV__ |
#define _ | ( | ... | ) |
Retrieve the translation of a C or C++ string.
#define N_ | ( | str | ) |
Mark a string for translation, passed through verbatim by the preprocessor.
#define APPLY_IDL_PROPERTY | ( | lvalue, | |
rvalue | |||
) |
Constrain, apply, notify and implement a property change, the property name must equal `__func__`.
#define ARRAY_SIZE | ( | array | ) |
Yield the number of C array elements.
#define assert_return | ( | expr, | |
... | |||
) |
Return from the current function if `expr` is unmet and issue an assertion warning.
#define assert_return_unreached | ( | ... | ) |
Return from the current function and issue an assertion warning.
#define assert_warn | ( | expr | ) |
Issue an assertion warning if `expr` evaluates to false.
#define assert_paranoid | ( | expr | ) |
Issue an assertion warning if `expr` evaluates to false, check might be disabled in production.
#define assert_unreached | ( | ) |
Explicitely mark unreachable code locations.
#define if_constexpr |
Indentation helper for editors that cannot (yet) decipher `if constexpr`.
#define CQUOTE | ( | str | ) |
Produce a const char* string, wrapping str into C-style double quotes.
#define MAX | ( | a, | |
b | |||
) |
Yield maximum of `a` and `b`.
#define MIN | ( | a, | |
b | |||
) |
Yield minimum of `a` and `b`.
#define CLAMP | ( | v, | |
mi, | |||
ma | |||
) |
Yield `v` clamped to `[mi … ma]`.
#define ISLIKELY | ( | cond | ) |
Hint to the compiler to optimize for cond == TRUE.
#define UNLIKELY | ( | cond | ) |
Hint to the compiler to optimize for cond == FALSE.
#define ALIGNMENT16 | ( | pointer | ) |
Yield 16-Byte alignment of a pointer address.
#define ALIGNED16 | ( | pointer | ) |
Check if a pointer address is 16-Byte aligned.
#define return_unless | ( | cond, | |
... | |||
) |
Return silently if cond does not evaluate to true with return value ...
#define STRING_VECTOR_FROM_ARRAY | ( | ConstCharArray | ) |
Create a Ase::StringVector, from a const char* C-style array.
#define TEST_INTEGRITY | ( | FUNC | ) |
Register `func` as an integrity test.
#define TEST_BENCHMARK | ( | FUNC | ) |
Register `func` as a benchmark test.