We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d102d81 commit 4b2a9c2Copy full SHA for 4b2a9c2
basic/assertion/include/assert.hxx
@@ -1,5 +1,8 @@
1
#pragma once
2
#include <cstdlib>
3
4
-#define assert(b)\
5
- if(!(b)) std::exit(EXIT_FAILURE);
+#define assert(b) \
+ if (!(b)) { \
6
+ printf("Error : %s\n", #b); \
7
+ exit(EXIT_FAILURE); \
8
+ }
0 commit comments