Functions used for debugging.
More...
|
#define | SYS_ASSERT_HANDLER(CONDITION_STRING) |
| System assertion fault handler. More...
|
|
#define | TRACE_PUTS(s) |
|
#define | TRACE(INFO_FMT,...) |
|
|
void | sys_assert_handler (const char *condition, const int line, const char *file) |
| System assertion fault handler function. More...
|
|
void | sys_assert_info_handler (const char *condition, const int line, const char *file, const char *info_fmt,...) |
| System assertion fault handler function with additional assertion information. More...
|
|
void | sys_trace_handler (const char *fmt,...) |
| System trace output handler function. More...
|
|
Functions used for debugging.
#define SYS_ASSERT_HANDLER |
( |
|
CONDITION_STRING | ) |
|
Value:do \
{ \
sys_assert_handler(CONDITION_STRING, __LINE__, __FILE__); \
} while (0)
System assertion fault handler.
This macro should be used whenever an assertion fault is detected.
- Parameters
-
[in] | CONDITION_STRING | Assertion condition string, which occurred to be not true. |
void sys_assert_handler |
( |
const char * |
condition, |
|
|
const int |
line, |
|
|
const char * |
file |
|
) |
| |
System assertion fault handler function.
- Parameters
-
[in] | condition | Assertion condition string, which was expected to be true. |
[in] | line | Line number. |
[in] | file | File name. |
void sys_assert_info_handler |
( |
const char * |
condition, |
|
|
const int |
line, |
|
|
const char * |
file, |
|
|
const char * |
info_fmt, |
|
|
|
... |
|
) |
| |
System assertion fault handler function with additional assertion information.
- Parameters
-
[in] | condition | Assertion condition string, which was expected to be true. |
[in] | line | Line number. |
[in] | file | File name. |
[in] | info_fmt | Format string for additional assert information. |
[in] | ... | Arguments list corresponding to the format string. |
void sys_trace_handler |
( |
const char * |
fmt, |
|
|
|
... |
|
) |
| |
System trace output handler function.
- Parameters
-
[in] | fmt | Format string for trace output. |
[in] | ... | Arguments list corresponding to the format string. |