Index: src/checks.h |
diff --git a/src/checks.h b/src/checks.h |
index d0a0c2b5acf5da52e3f2c49d3138b62904fa34df..b020286190ac723585d9087e47b98abe40569dac 100644 |
--- a/src/checks.h |
+++ b/src/checks.h |
@@ -265,6 +265,7 @@ extern bool FLAG_enable_slow_asserts; |
#define ASSERT_LT(v1, v2) CHECK_LT(v1, v2) |
#define ASSERT_LE(v1, v2) CHECK_LE(v1, v2) |
#define SLOW_ASSERT(condition) CHECK(!FLAG_enable_slow_asserts || (condition)) |
+#define FOR_ASSERT(statement) statement |
#else |
#define ASSERT_RESULT(expr) (expr) |
#define ASSERT(condition) ((void) 0) |
@@ -274,6 +275,7 @@ extern bool FLAG_enable_slow_asserts; |
#define ASSERT_LT(v1, v2) ((void) 0) |
#define ASSERT_LE(v1, v2) ((void) 0) |
#define SLOW_ASSERT(condition) ((void) 0) |
+#define FOR_ASSERT(statement) ((void) 0) |
Toon Verwaest
2013/05/28 09:33:32
What about just putting the statement in #ifdef DE
|
#endif |
// Static asserts has no impact on runtime performance, so they can be |
// safely enabled in release mode. Moreover, the ((void) 0) expression |