Forráskód Böngészése

[dbg] add dlog macro

bernard 2 éve
szülő
commit
79b93c2199
1 módosított fájl, 7 hozzáadás és 0 törlés
  1. 7 0
      include/rtdbg.h

+ 7 - 0
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>