Fix void* arithmetic bug. Add dassert facility.
[akaros.git] / kern / include / assert.h
index b04306e..2dcb6d7 100644 (file)
@@ -22,4 +22,10 @@ void ( _panic)(const char* NTS, int, const char* NTS, ...)
 // static_assert(x) will generate a compile-time error if 'x' is false.
 #define static_assert(x)       switch (x) case 0: case (x):
 
+#ifdef CONFIG_DEVELOPMENT_ASSERTIONS
+#define dassert(x) assert(x)
+#else
+#define dassert(x)
+#endif /* DEVELOPMENT_ASSERTIONS */
+
 #endif /* !ROS_INC_ASSERT_H */