|
|
@@ -24,5 +24,6 @@ namespace error
|
|
|
#define CE_ASSERT(...) ((void)0)
|
|
|
#endif // CROWN_DEBUG
|
|
|
|
|
|
-#define CE_ASSERT_NOT_NULL(x) CE_ASSERT(x != NULL, #x " must be not null")
|
|
|
+#define CE_ASSERT_NOT_NULL(pointer) CE_ASSERT(pointer != NULL, #pointer " must be not null")
|
|
|
#define CE_FATAL(msg) CE_ASSERT(false, msg)
|
|
|
+#define CE_ENSURE(condition) CE_ASSERT(condition, "")
|