|
Blender V5.3
|
#include <stddef.h>Go to the source code of this file.
Macros | |
Object | |
| #define | _BLI_ASSERT_PRINT_POS(a) |
| #define | _BLI_ASSERT_ABORT() |
| #define | BLI_assert(a) |
| #define | BLI_assert_msg(a, msg) |
| #define | BLI_STATIC_ASSERT(a, msg) |
| #define | BLI_STATIC_ASSERT_ALIGN(st, align) |
| #define | BLI_assert_unreachable() |
| #define | BLI_assert_unreachable_static() |
| #define | BLI_assert_unreachable_static_t(T) |
Functions | |
| void | _BLI_assert_print_pos (const char *file, int line, const char *function, const char *id) |
| void | _BLI_assert_print_extra (const char *str) |
| void | _BLI_assert_print_backtrace () |
| void | _BLI_assert_abort () |
| void | _BLI_assert_unreachable_print (const char *file, int line, const char *function) |
Variables | |
| template<class T> | |
| constexpr bool | _bli_always_false = false |
| #define _BLI_ASSERT_ABORT | ( | ) |
Definition at line 46 of file blenkernel/intern/sound.cc.
| #define _BLI_ASSERT_PRINT_POS | ( | a | ) |
Definition at line 40 of file blenkernel/intern/sound.cc.
| #define BLI_assert | ( | a | ) |
Definition at line 49 of file blenkernel/intern/sound.cc.
| #define BLI_assert_msg | ( | a, | |
| msg ) |
A version of BLI_assert() to pass an additional message to be printed on failure.
Definition at line 56 of file blenkernel/intern/sound.cc.
| #define BLI_assert_unreachable | ( | ) |
Indicates that this line of code should never be executed. If it is reached, it will abort in debug builds and print an error in release builds.
Definition at line 78 of file blenkernel/intern/sound.cc.
| #define BLI_assert_unreachable_static | ( | ) |
Indicates that this line should never be reached, even at compile-time. Just doing static_assert(false) doesn't work in C++20 for this use-case. BLI_assert_unreachable is similar but does not catch issues at compile-time.
Definition at line 90 of file blenkernel/intern/sound.cc.
| #define BLI_assert_unreachable_static_t | ( | T | ) |
Like BLI_assert_unreachable_static but allows passing in a type. This results in a more useful error message containing the type name.
Definition at line 100 of file blenkernel/intern/sound.cc.
| #define BLI_STATIC_ASSERT | ( | a , | |
| msg ) |
Definition at line 69 of file blenkernel/intern/sound.cc.
| #define BLI_STATIC_ASSERT_ALIGN | ( | st, | |
| align ) |
Definition at line 71 of file blenkernel/intern/sound.cc.
| void _BLI_assert_abort | ( | ) |
Definition at line 43 of file BLI_assert.cc.
References _BLI_assert_abort().
Referenced by _BLI_assert_abort().
| void _BLI_assert_print_backtrace | ( | ) |
Definition at line 36 of file BLI_assert.cc.
References _BLI_assert_print_backtrace(), and blender::BLI_system_backtrace().
Referenced by _BLI_assert_print_backtrace().
| void _BLI_assert_print_extra | ( | const char * | str | ) |
Definition at line 25 of file BLI_assert.cc.
References _BLI_assert_print_extra(), and str.
Referenced by _BLI_assert_print_extra().
| void _BLI_assert_print_pos | ( | const char * | file, |
| int | line, | ||
| const char * | function, | ||
| const char * | id ) |
Definition at line 20 of file BLI_assert.cc.
References _BLI_assert_print_pos().
Referenced by _BLI_assert_print_pos().
| void _BLI_assert_unreachable_print | ( | const char * | file, |
| int | line, | ||
| const char * | function ) |
Definition at line 30 of file BLI_assert.cc.
References _BLI_assert_unreachable_print().
Referenced by _BLI_assert_unreachable_print().
|
inlineconstexpr |
Definition at line 93 of file BLI_assert.hh.