We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c47c5c1 commit 84a147eCopy full SHA for 84a147e
Makefile
@@ -1,3 +1,5 @@
1
.PHONY: tests
2
tests:
3
- gcc tests/assert.c src/assert.c -o asserttest -Isrc/include
+ mkdir -p testbin
4
+ gcc tests/assert-ndebug.c src/assert.c -o testbin/asserttest-ndebug -Isrc/include
5
+ gcc tests/assert.c src/assert.c -o testbin/asserttest -Isrc/include
tests/assert-ndebug.c
@@ -0,0 +1,10 @@
+#define NDEBUG
+
+#include <assert.h>
+int main() {
6
+ assert(1 == 1);
7
+ assert(1 != 1);
8
9
+ return 0;
10
+}
0 commit comments