From 718b6705fd47ca1ceb7b8702352ecedf6f7c1c9a Mon Sep 17 00:00:00 2001 From: Erki Date: Fri, 15 Jul 2022 13:54:31 +0300 Subject: [PATCH] Utility: replace standard library asserts with SKULLC ones. --- Utility/Inc/utility_function.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Utility/Inc/utility_function.hpp b/Utility/Inc/utility_function.hpp index e01078c..0d62c67 100644 --- a/Utility/Inc/utility_function.hpp +++ b/Utility/Inc/utility_function.hpp @@ -8,6 +8,8 @@ #ifndef SKULLC_UTILITY_FUNCTION_HPP_ #define SKULLC_UTILITY_FUNCTION_HPP_ +#include + namespace Utility { @@ -49,7 +51,7 @@ public: explicit Function(signature callable) : callable_(callable) { - assert(callable_); + SKULLC_ASSERT_DEBUG(callable_); } ~Function() override @@ -81,7 +83,7 @@ public: explicit FunctionOwned(source& src, signature callable) : src_(&src), callable_(callable) { - assert(callable_); + SKULLC_ASSERT_DEBUG(callable_); } ~FunctionOwned() override