From 657767536fcd9915f5734e554f4f75f528ac75b2 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 22 Mar 2020 11:32:54 +0100 Subject: [PATCH] Implements AssertNotNull macro --- src/Assert.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Assert.hpp b/src/Assert.hpp index 12d568a..983ad03 100644 --- a/src/Assert.hpp +++ b/src/Assert.hpp @@ -21,4 +21,6 @@ #define Assert(expr) #endif +#define AssertNotNull(value) Assert(value != nullptr) + #endif \ No newline at end of file