Daniele Bartolini 10 роки тому
батько
коміт
dab87a5d34
1 змінених файлів з 2 додано та 1 видалено
  1. 2 1
      src/core/error/error.h

+ 2 - 1
src/core/error/error.h

@@ -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, "")