فهرست منبع

Modify DEBUG_ASSERT macro (some old compilers seem to have problems)

bel2125 7 سال پیش
والد
کامیت
ba796e525b
2فایلهای تغییر یافته به همراه2 افزوده شده و 6 حذف شده
  1. 1 3
      src/civetweb.c
  2. 1 3
      src/main.c

+ 1 - 3
src/civetweb.c

@@ -163,9 +163,7 @@ static void DEBUG_TRACE_FUNC(const char *func,
 		}                                                                      \
 		}                                                                      \
 	} while (0)
 	} while (0)
 #else
 #else
-#define DEBUG_ASSERT(cond)                                                     \
-	do {                                                                       \
-	} while (0)
+#define DEBUG_ASSERT(cond)
 #endif /* DEBUG */
 #endif /* DEBUG */
 #endif
 #endif
 
 

+ 1 - 3
src/main.c

@@ -151,9 +151,7 @@ extern char *_getcwd(char *buf, size_t size);
 	} while (0)
 	} while (0)
 
 
 #else
 #else
-#define DEBUG_ASSERT(cond)                                                     \
-	do {                                                                       \
-	} while (0)
+#define DEBUG_ASSERT(cond)
 #endif /* DEBUG */
 #endif /* DEBUG */
 #endif
 #endif