#include "stdint.h"
#include "xil_printf.h"
Go to the source code of this file.
|
#define | PR_RESET "\e[0m" |
|
#define | PR_DEBUG "\e[32;49;1mDEBUG " |
|
#define | PR_INFO "\e[34;49;1mINFO " |
|
#define | PR_WARN "\e[33;49;1mWARN " |
|
#define | PR_ERROR "\e[31;49;1mERROR " |
|
#define | CODE_POS_FMT "(%s() at %s:%d):: " |
|
#define | CODE_POS_ARGS __func__, __FILE__, __LINE__ |
|
#define | SPLIT_LINE "-----------------------------------------------------------------------------\n" |
|
#define | printf xil_printf |
|
#define | pr_raw xil_printf |
|
#define | pr(fmt, ...) pr_raw(fmt "\r\n", ##__VA_ARGS__) |
|
#define | pr_debug(fmt, ...) |
|
#define | pr_info(fmt, ...) pr(PR_INFO PR_RESET fmt, ##__VA_ARGS__) |
|
#define | pr_warn(fmt, ...) pr(PR_WARN CODE_POS_FMT PR_RESET fmt, CODE_POS_ARGS, ##__VA_ARGS__) |
|
#define | pr_error(fmt, ...) pr(PR_ERROR CODE_POS_FMT PR_RESET fmt, CODE_POS_ARGS, ##__VA_ARGS__) |
|
#define | MEMBER_SIZE(type, mem) (sizeof((((type *)0)->mem))) |
|
#define | ASSERT(cond, ...) |
|
#define | STATIC_ASSERT(cond) ((int)(sizeof(struct { int : (-!(cond)); }))) |
|
◆ ASSERT
#define ASSERT |
( |
|
cond, |
|
|
|
... |
|
) |
| |
Value: ({ \
if (!(cond)) \
{ \
pr_error("assert failed: " __VA_ARGS__); \
while (1) \
; \
} \
})
Definition at line 96 of file debug.h.
◆ CODE_POS_ARGS
#define CODE_POS_ARGS __func__, __FILE__, __LINE__ |
◆ CODE_POS_FMT
#define CODE_POS_FMT "(%s() at %s:%d):: " |
◆ MEMBER_SIZE
#define MEMBER_SIZE |
( |
|
type, |
|
|
|
mem |
|
) |
| (sizeof((((type *)0)->mem))) |
◆ pr
#define pr |
( |
|
fmt, |
|
|
|
... |
|
) |
| pr_raw(fmt "\r\n", ##__VA_ARGS__) |
◆ PR_DEBUG
#define PR_DEBUG "\e[32;49;1mDEBUG " |
◆ pr_debug
#define pr_debug |
( |
|
fmt, |
|
|
|
... |
|
) |
| |
◆ PR_ERROR
#define PR_ERROR "\e[31;49;1mERROR " |
◆ pr_error
◆ PR_INFO
#define PR_INFO "\e[34;49;1mINFO " |
◆ pr_info
◆ pr_raw
#define pr_raw xil_printf |
◆ PR_RESET
◆ PR_WARN
#define PR_WARN "\e[33;49;1mWARN " |
◆ pr_warn
◆ printf
#define printf xil_printf |
◆ SPLIT_LINE
#define SPLIT_LINE "-----------------------------------------------------------------------------\n" |
◆ STATIC_ASSERT
#define STATIC_ASSERT |
( |
|
cond | ) |
((int)(sizeof(struct { int : (-!(cond)); }))) |