Sfoglia il codice sorgente

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

bel2125 7 anni fa
parent
commit
ba796e525b
2 ha cambiato i file con 2 aggiunte e 6 eliminazioni
  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)
 #else
-#define DEBUG_ASSERT(cond)                                                     \
-	do {                                                                       \
-	} while (0)
+#define DEBUG_ASSERT(cond)
 #endif /* DEBUG */
 #endif
 

+ 1 - 3
src/main.c

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