summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbernard <[email protected]>2023-01-03 22:13:01 +0800
committerguo <[email protected]>2023-01-05 21:36:24 +0800
commit79b93c21997e8fbc5a280fcf68f5e9347fec795c (patch)
tree5f3b4082b54271994f042eb091790d803217f68e
parente498687a583a0a781430c0b46d272cc4ffea0ddd (diff)
[dbg] add dlog macro
-rw-r--r--include/rtdbg.h7
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>