IceShard 1
A personal game engine project, with development focused on 2D/2.5D games.
Loading...
Searching...
No Matches
assert_core.hxx File Reference
#include <ice/build/platform.hxx>
#include <assert.h>
#include <cassert>

Go to the source code of this file.

Namespaces

namespace  ice
 SPDX-License-Identifier: MIT.
namespace  ice::detail

Macros

#define ICE_ASSERT_CORE(expression)

Functions

constexpr char ice::detail::_iceshard_constexpr_assert (bool v) noexcept

Macro Definition Documentation

◆ ICE_ASSERT_CORE

#define ICE_ASSERT_CORE ( expression)
Value:
do { if (std::is_constant_evaluated() == false) { \
((expression) \
? __assert_no_op \
: __assert2(__FILE__, __LINE__, __PRETTY_FUNCTION__, #expression)); \
} else { ice::detail::_iceshard_constexpr_assert(expression); } } while(false)
constexpr char _iceshard_constexpr_assert(bool v) noexcept
Definition assert_core.hxx:16