#include <arch/hlt.h>
#include <console/console.h>
#include <stdint.h>
Go to the source code of this file.
◆ __ASSERT_FILE__
#define __ASSERT_FILE__ __FILE__ |
◆ __ASSERT_LINE__
#define __ASSERT_LINE__ __LINE__ |
◆ __build_time_assert
#define __build_time_assert |
( |
|
x | ) |
(__builtin_constant_p(x) ? ((x) ? 1 : dead_code_t(int)) : 0) |
◆ assert
#define assert |
( |
|
statement | ) |
ASSERT(statement) |
◆ ASSERT
Value: { \
"ASSERTION ERROR: file '%s', line %d\n", \
MOCK_ASSERT(!!(
x), #
x); \
hlt(); \
} \
}
#define __build_time_assert(x)
#define BIOS_EMERG
BIOS_EMERG - Emergency / Fatal.
Definition at line 44 of file assert.h.
◆ ASSERT_MSG
#define ASSERT_MSG |
( |
|
x, |
|
|
|
msg |
|
) |
| |
Value: { \
"ASSERTION ERROR: file '%s', line %d\n", \
MOCK_ASSERT(!!(
x), (msg)); \
hlt(); \
} \
}
Definition at line 54 of file assert.h.
◆ BUG
Value: { \
"ERROR: BUG ENCOUNTERED at file '%s', line %d\n", \
MOCK_ASSERT(0, "BUG ENCOUNTERED"); \
hlt(); \
}
Definition at line 65 of file assert.h.
◆ dead_code
◆ dead_code_t
#define dead_code_t |
( |
|
type | ) |
|
◆ MOCK_ASSERT
#define MOCK_ASSERT |
( |
|
result, |
|
|
|
expression |
|
) |
| |
◆ pointer_to_uint32_safe
#define pointer_to_uint32_safe |
( |
|
x | ) |
|
◆ _dead_code_assertion_failed()
void _dead_code_assertion_failed |
( |
void |
| ) |
|
◆ mock_assert()
void mock_assert |
( |
const int |
result, |
|
|
const char *const |
expression, |
|
|
const char *const |
file, |
|
|
const int |
line |
|
) |
| |