file
internal.hhNamespaces
Defines
- #define ALIGNED16(pointer)
- Check if a pointer address is 16-Byte aligned.
- #define ALIGNMENT16(pointer)
- Yield 16-Byte alignment of a pointer address.
- #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 CLAMP(v, mi, ma)
- Yield
v
clamped to[mi … ma]
. - #define CQUOTE(str)
- Produce a const char* string, wrapping str into C-style double quotes.
- #define ISLIKELY(cond)
- Hint to the compiler to optimize for cond == TRUE.
- #define JSONIPC_INHERIT(IMPL, INTERFACE)
- Register
IMPL
with Jsonipc and indicate it inherits fromINTERFACE
. - #define MAX(a, b)
- Yield maximum of
a
andb
. - #define MIN(a, b)
- Yield minimum of
a
andb
. - #define N_(str)
- Mark a string for translation, passed through verbatim by the preprocessor.
- #define STRING_VECTOR_FROM_ARRAY(ConstCharArray)
- Create a Ase::StringVector, from a const char* C-style array.
- #define TEST_BENCHMARK(FUNC)
- Register
func
as a benchmark test. - #define TEST_INTEGRITY(FUNC)
- Register
func
as an integrity test. - #define UNLIKELY(cond)
- Hint to the compiler to optimize for cond == FALSE.
- #define _(...)
- Retrieve the translation of a C or C++ string.
- #define assert_paranoid(expr)
- Issue an assertion warning if
expr
evaluates to false, check might be disabled in production. - #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_unreached()
- Explicitely mark unreachable code locations.
- #define assert_warn(expr)
- Issue an assertion warning if
expr
evaluates to false. - #define if_constexpr
- Indentation helper for editors that cannot (yet) decipher
if constexpr
- #define return_unless(cond, ...)
- Return silently if cond does not evaluate to true with return value ...