Blender
V3.3
|
Go to the source code of this file.
Macros | |
#define | _BLI_ASSERT_PRINT_POS(a) _BLI_assert_print_pos(__FILE__, __LINE__, "<?>", # a) |
#define | _BLI_ASSERT_ABORT() (void)0 |
#define | BLI_assert(a) |
#define | BLI_assert_msg(a, msg) |
#define | BLI_STATIC_ASSERT(a, msg) |
#define | BLI_STATIC_ASSERT_ALIGN(st, align) BLI_STATIC_ASSERT((sizeof(st) % (align) == 0), "Structure must be strictly aligned") |
#define | BLI_assert_unreachable() |
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) |
void | _BLI_assert_abort (void) |
void | _BLI_assert_unreachable_print (const char *file, int line, const char *function) |
Definition at line 43 of file BLI_assert.h.
#define _BLI_ASSERT_PRINT_POS | ( | a | ) | _BLI_assert_print_pos(__FILE__, __LINE__, "<?>", # a) |
Definition at line 37 of file BLI_assert.h.
#define BLI_assert | ( | a | ) |
Definition at line 46 of file BLI_assert.h.
#define BLI_assert_msg | ( | a, | |
msg | |||
) |
A version of BLI_assert() to pass an additional message to be printed on failure.
Definition at line 53 of file BLI_assert.h.
#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 93 of file BLI_assert.h.
#define BLI_STATIC_ASSERT | ( | a, | |
msg | |||
) |
Definition at line 83 of file BLI_assert.h.
#define BLI_STATIC_ASSERT_ALIGN | ( | st, | |
align | |||
) | BLI_STATIC_ASSERT((sizeof(st) % (align) == 0), "Structure must be strictly aligned") |
Definition at line 86 of file BLI_assert.h.
Definition at line 38 of file BLI_assert.c.
Definition at line 31 of file BLI_assert.c.
References BLI_system_backtrace().
void _BLI_assert_print_extra | ( | const char * | str | ) |
Definition at line 20 of file BLI_assert.c.
References str.
void _BLI_assert_print_pos | ( | const char * | file, |
int | line, | ||
const char * | function, | ||
const char * | id | ||
) |
Definition at line 15 of file BLI_assert.c.
References file.
void _BLI_assert_unreachable_print | ( | const char * | file, |
int | line, | ||
const char * | function | ||
) |
Definition at line 25 of file BLI_assert.c.
References file.