From 2d4cc2cd804324ef519732b743c9b0ab5a463ff9 Mon Sep 17 00:00:00 2001 From: Deukhoofd Date: Sun, 22 Mar 2020 11:52:08 +0100 Subject: [PATCH] Further fixes for Assert --- src/Assert.hpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Assert.hpp b/src/Assert.hpp index 848a452..2d62aed 100644 --- a/src/Assert.hpp +++ b/src/Assert.hpp @@ -1,5 +1,3 @@ -#ifndef ARBUTILS_ASSERT_HPP -#define ARBUTILS_ASSERT_HPP #include #include #include @@ -15,12 +13,10 @@ ss << #expr << "\""; \ throw std::logic_error(ss.str()); \ } \ - } + }; #else // Assert is empty if NO_ASSERT is defined. #define Assert(expr) #endif -#define AssertNotNull(value) Assert(value != nullptr) - -#endif \ No newline at end of file +#define AssertNotNull(value) Assert(value != nullptr) \ No newline at end of file