2
0
Эх сурвалжийг харах

Add macro to check for not null variables

Daniele Bartolini 12 жил өмнө
parent
commit
a0112274ee
1 өөрчлөгдсөн 3 нэмэгдсэн , 0 устгасан
  1. 3 0
      src/core/Assert.h

+ 3 - 0
src/core/Assert.h

@@ -38,3 +38,6 @@ OTHER DEALINGS IN THE SOFTWARE.
 #else
 	#define CE_ASSERT(condition, message, ...) ((void)0)
 #endif
+
+#define CE_ASSERT_NOT_NULL(x) CE_ASSERT(x != NULL, "Parameter must be not null")
+