Definition of assertion macros.
More...
#include <cstdio>
#include <cstdlib>
#include <string_view>
#include <fmt/base.h>
#include "num_collect/util/source_info_view.h"
Go to the source code of this file.
Definition of assertion macros.
Definition in file assert.h.
◆ NUM_COLLECT_ASSERT
#define NUM_COLLECT_ASSERT |
( |
| CONDITION | ) |
|
Value: \
NUM_COLLECT_ASSERT_IMPL(CONDITION)
Macro to check whether a condition is satisfied.
- Parameters
-
Definition at line 66 of file assert.h.
◆ NUM_COLLECT_ASSERT_IMPL
#define NUM_COLLECT_ASSERT_IMPL |
( |
| CONDITION | ) |
|
Value: \
do { \
if (!(CONDITION)) [[unlikely]] { \
::num_collect::util::impl::handle_assertion_failure((#CONDITION)); \
} \
} while (false)
Macro to check whether a condition is satisfied.
- Parameters
-
Definition at line 54 of file assert.h.
◆ NUM_COLLECT_DEBUG_ASSERT
#define NUM_COLLECT_DEBUG_ASSERT |
( |
| CONDITION | ) |
|
Value:
#define NUM_COLLECT_ASSERT(CONDITION)
Macro to check whether a condition is satisfied.
Macro to check whether a condition is satisfied in debug build only.
- Parameters
-
Definition at line 75 of file assert.h.