Avoid redefine 'NDEBUG'
authorCaiwen Zhang <caiwen.zhang@intel.com>
Thu, 18 Sep 2014 17:18:50 +0000 (01:18 +0800)
committerCaiwen Zhang <caiwen.zhang@intel.com>
Thu, 18 Sep 2014 17:18:50 +0000 (01:18 +0800)
Change-Id: I1a8e1c5b0a8b7aa0c1ab19e292485e4e20ab90a5

csdk/libcoap-4.1.1/debug.h

index d3d39aa..7896f28 100644 (file)
@@ -53,7 +53,7 @@ void coap_log_impl(coap_log_t level, const char *format, ...);
 #define coap_log(...) coap_log_impl(__VA_ARGS__)
 #endif
 
-#ifndef TB_LOG
+#if !defined(TB_LOG) && !defined(NDEBUG)
 #define NDEBUG
 #endif