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

Go to the source code of this file.

Namespaces

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

Macros

#define ICE_ASSERT(condition, message, ...)

Functions

void ice::detail::assert (ice::String condition, ice::String message, fmt::format_args args, ice::detail::LogLocation location) noexcept
void ice::detail::terminate () noexcept

Macro Definition Documentation

◆ ICE_ASSERT

#define ICE_ASSERT ( condition,
message,
... )
Value:
do{ \
{ \
if (!(condition)) \
{ \
ice::detail::assert( \
#condition, \
message, \
ice::detail::LogLocation{ .file = __FILE__, .line = __LINE__ } \
); \
ice::detail::terminate(); \
} \
} \
} while(false)
constexpr auto log_make_args() noexcept
Definition log.hxx:36
@ Error
Definition log_severity.hxx:15
static constexpr LogSeverity lowest_compiled_log_severity
Definition log_severity.hxx:25
Definition log.hxx:15