Utility: replace standard library asserts with SKULLC ones.

This commit is contained in:
Erki 2022-07-15 13:54:31 +03:00
parent 0ba9416a57
commit 718b6705fd

View File

@ -8,6 +8,8 @@
#ifndef SKULLC_UTILITY_FUNCTION_HPP_
#define SKULLC_UTILITY_FUNCTION_HPP_
#include <utility_assert.hpp>
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