diff options
| author | bernard <[email protected]> | 2023-01-03 22:13:01 +0800 |
|---|---|---|
| committer | guo <[email protected]> | 2023-01-05 21:36:24 +0800 |
| commit | 79b93c21997e8fbc5a280fcf68f5e9347fec795c (patch) | |
| tree | 5f3b4082b54271994f042eb091790d803217f68e | |
| parent | e498687a583a0a781430c0b46d272cc4ffea0ddd (diff) | |
[dbg] add dlog macro
| -rw-r--r-- | include/rtdbg.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/rtdbg.h b/include/rtdbg.h index 6a6ea3d670..4eb544aecb 100644 --- a/include/rtdbg.h +++ b/include/rtdbg.h @@ -46,6 +46,13 @@ extern "C" { #define DBG_COLOR #endif +/* for dlog */ +#ifdef PKG_USING_DLOG +#include <dlog.h> +#else +#define DLOG(...) +#endif + #if defined(RT_USING_ULOG) /* using ulog compatible with rtdbg */ #include <ulog.h> |
