Botan 3.0.0
Crypto and TLS for C&
|
Public Header. More...
#include <botan/build.h>
Go to the source code of this file.
Namespaces | |
namespace | Botan |
Macros | |
#define | _BOTAN_UNUSED_GET_IMPL(_1, _2, _3, _4, _5, _6, _7, _8, _9, IMPL_NAME, ...) IMPL_NAME |
#define | _BOTAN_UNUSED_IMPL1(a) static_cast<void>(a) |
#define | _BOTAN_UNUSED_IMPL2(a, b) static_cast<void>(a); _BOTAN_UNUSED_IMPL1(b) |
#define | _BOTAN_UNUSED_IMPL3(a, b, c) static_cast<void>(a); _BOTAN_UNUSED_IMPL2(b, c) |
#define | _BOTAN_UNUSED_IMPL4(a, b, c, d) static_cast<void>(a); _BOTAN_UNUSED_IMPL3(b, c, d) |
#define | _BOTAN_UNUSED_IMPL5(a, b, c, d, e) static_cast<void>(a); _BOTAN_UNUSED_IMPL4(b, c, d, e) |
#define | _BOTAN_UNUSED_IMPL6(a, b, c, d, e, f) static_cast<void>(a); _BOTAN_UNUSED_IMPL5(b, c, d, e, f) |
#define | _BOTAN_UNUSED_IMPL7(a, b, c, d, e, f, g) static_cast<void>(a); _BOTAN_UNUSED_IMPL6(b, c, d, e, f, g) |
#define | _BOTAN_UNUSED_IMPL8(a, b, c, d, e, f, g, h) static_cast<void>(a); _BOTAN_UNUSED_IMPL7(b, c, d, e, f, g, h) |
#define | _BOTAN_UNUSED_IMPL9(a, b, c, d, e, f, g, h, i) static_cast<void>(a); _BOTAN_UNUSED_IMPL8(b, c, d, e, f, g, h, i) |
#define | BOTAN_ARG_CHECK(expr, msg) do { if(!(expr)) Botan::throw_invalid_argument(msg, __func__, __FILE__); } while(0) |
#define | BOTAN_ASSERT(expr, assertion_made) |
#define | BOTAN_ASSERT_EQUAL(expr1, expr2, assertion_made) |
#define | BOTAN_ASSERT_IMPLICATION(expr1, expr2, msg) |
#define | BOTAN_ASSERT_NOMSG(expr) |
#define | BOTAN_ASSERT_NONNULL(ptr) |
#define | BOTAN_DEBUG_ASSERT(expr) do {} while(0) |
#define | BOTAN_STATE_CHECK(expr) do { if(!(expr)) Botan::throw_invalid_state(#expr, __func__, __FILE__); } while(0) |
#define | BOTAN_UNUSED(...) |
Functions | |
void | Botan::assertion_failure (const char *expr_str, const char *assertion_made, const char *func, const char *file, int line) |
void | Botan::throw_invalid_argument (const char *message, const char *func, const char *file) |
void | Botan::throw_invalid_state (const char *expr, const char *func, const char *file) |
BOTAN_FORCE_INLINE void | Botan::unreachable () |
Public Header.
Definition in file assert.h.
#define _BOTAN_UNUSED_GET_IMPL | ( | _1, | |
_2, | |||
_3, | |||
_4, | |||
_5, | |||
_6, | |||
_7, | |||
_8, | |||
_9, | |||
IMPL_NAME, | |||
... | |||
) | IMPL_NAME |
#define _BOTAN_UNUSED_IMPL1 | ( | a | ) | static_cast<void>(a) |
Mark variable as unused. Takes between 1 and 9 arguments and marks all as unused, e.g. BOTAN_UNUSED(a); or BOTAN_UNUSED(x, y, z);
#define _BOTAN_UNUSED_IMPL2 | ( | a, | |
b | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL1(b) |
#define _BOTAN_UNUSED_IMPL3 | ( | a, | |
b, | |||
c | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL2(b, c) |
#define _BOTAN_UNUSED_IMPL4 | ( | a, | |
b, | |||
c, | |||
d | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL3(b, c, d) |
#define _BOTAN_UNUSED_IMPL5 | ( | a, | |
b, | |||
c, | |||
d, | |||
e | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL4(b, c, d, e) |
#define _BOTAN_UNUSED_IMPL6 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL5(b, c, d, e, f) |
#define _BOTAN_UNUSED_IMPL7 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL6(b, c, d, e, f, g) |
#define _BOTAN_UNUSED_IMPL8 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL7(b, c, d, e, f, g, h) |
#define _BOTAN_UNUSED_IMPL9 | ( | a, | |
b, | |||
c, | |||
d, | |||
e, | |||
f, | |||
g, | |||
h, | |||
i | |||
) | static_cast<void>(a); _BOTAN_UNUSED_IMPL8(b, c, d, e, f, g, h, i) |
#define BOTAN_ARG_CHECK | ( | expr, | |
msg | |||
) | do { if(!(expr)) Botan::throw_invalid_argument(msg, __func__, __FILE__); } while(0) |
#define BOTAN_ASSERT | ( | expr, | |
assertion_made | |||
) |
#define BOTAN_ASSERT_EQUAL | ( | expr1, | |
expr2, | |||
assertion_made | |||
) |
#define BOTAN_ASSERT_IMPLICATION | ( | expr1, | |
expr2, | |||
msg | |||
) |
#define BOTAN_ASSERT_NOMSG | ( | expr | ) |
#define BOTAN_ASSERT_NONNULL | ( | ptr | ) |
#define BOTAN_STATE_CHECK | ( | expr | ) | do { if(!(expr)) Botan::throw_invalid_state(#expr, __func__, __FILE__); } while(0) |
#define BOTAN_UNUSED | ( | ... | ) |