Anklang C++ API 0.0.0
Loading...
Searching...
No Matches
internal.hh File Reference

Classes

struct IntegrityCheck

Namespaces

namespace Ase
namespace Ase::Test

Macros

#define_(...)
#defineALIGNED16(pointer)
#defineALIGNMENT16(pointer)
#defineAPPLY_IDL_PROPERTY(lvalue, rvalue)
#defineARRAY_SIZE(array)
#defineassert_paranoid(expr)
#defineassert_return(expr, ...)
#defineassert_return_unreached(...)
#defineassert_unreached()
#defineassert_warn(expr)
#defineCLAMP(v, mi, ma)
#defineCQUOTE(str)
#defineif_constexpr
#defineISLIKELY(cond)
#defineMAX(a, b)
#defineMIN(a, b)
#defineN_(str)
#definereturn_unless(cond, ...)
#defineSTRING_VECTOR_FROM_ARRAY(ConstCharArray)
#defineTEST_BENCHMARK(FUNC)
#defineTEST_INTEGRITY(FUNC)
#defineUNLIKELY(cond)

Variables

constexpr const bool__DEV__

Macro Definition Documentation

_

#define _ ( ...)

Retrieve the translation of a C or C++ string.

N_

#define N_ ( str)

Mark a string for translation, passed through verbatim by the preprocessor.

APPLY_IDL_PROPERTY

#define APPLY_IDL_PROPERTY ( lvalue,
rvalue
)

Constrain, apply, notify and implement a property change, the property name must equal `__func__`.

ARRAY_SIZE

#define ARRAY_SIZE ( array)

Yield the number of C array elements.

assert_return

#define assert_return ( expr,
...
)

Return from the current function if `expr` is unmet and issue an assertion warning.

assert_return_unreached

#define assert_return_unreached ( ...)

Return from the current function and issue an assertion warning.

assert_warn

#define assert_warn ( expr)

Issue an assertion warning if `expr` evaluates to false.

assert_paranoid

#define assert_paranoid ( expr)

Issue an assertion warning if `expr` evaluates to false, check might be disabled in production.

assert_unreached

#define assert_unreached ( )

Explicitely mark unreachable code locations.

if_constexpr

#define if_constexpr

Indentation helper for editors that cannot (yet) decipher `if constexpr`.

CQUOTE

#define CQUOTE ( str)

Produce a const char* string, wrapping str into C-style double quotes.

MAX

#define MAX ( a,
b
)

Yield maximum of `a` and `b`.

MIN

#define MIN ( a,
b
)

Yield minimum of `a` and `b`.

CLAMP

#define CLAMP ( v,
mi,
ma
)

Yield `v` clamped to `[mi … ma]`.

ISLIKELY

#define ISLIKELY ( cond)

Hint to the compiler to optimize for cond == TRUE.

UNLIKELY

#define UNLIKELY ( cond)

Hint to the compiler to optimize for cond == FALSE.

ALIGNMENT16

#define ALIGNMENT16 ( pointer)

Yield 16-Byte alignment of a pointer address.

ALIGNED16

#define ALIGNED16 ( pointer)

Check if a pointer address is 16-Byte aligned.

return_unless

#define return_unless ( cond,
...
)

Return silently if cond does not evaluate to true with return value ...

STRING_VECTOR_FROM_ARRAY

#define STRING_VECTOR_FROM_ARRAY ( ConstCharArray)

Create a Ase::StringVector, from a const char* C-style array.

TEST_INTEGRITY

#define TEST_INTEGRITY ( FUNC)

Register `func` as an integrity test.

TEST_BENCHMARK

#define TEST_BENCHMARK ( FUNC)

Register `func` as a benchmark test.