Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
assert.cpp File Reference
#include <pch.hpp>
#include <helios/assert.hpp>
#include <helios/stacktrace.hpp>
#include <helios/utils/filesystem.hpp>
#include <cstdio>
#include <cstdlib>
#include <format>
#include <source_location>
#include <string>
#include <string_view>

Go to the source code of this file.

Namespaces

namespace  helios
namespace  helios::anonymous_namespace{assert.cpp}
namespace  helios::details

Functions

constexpr StacktraceConfig helios::anonymous_namespace{assert.cpp}::BuildAssertionStacktraceConfig (const std::source_location &loc) noexcept
std::string helios::details::FormatAssertionMessage (std::string_view condition, const std::source_location &loc, std::string_view message)
 Formats a complete assertion failure message with source location and stack trace.
void helios::AbortWithStacktrace (std::string_view message) noexcept
 Prints a message with stack trace and aborts the program execution.
bool helios::details::HasLogPluginHandler () noexcept
 Log plugin assertion handler (weak symbol).
void helios::details::LogPluginAssertionHandler (std::string_view condition, const std::source_location &loc, std::string_view message) noexcept
 Weak symbol for log plugin assertion handler.

Variables

constexpr size_t helios::anonymous_namespace{assert.cpp}::kDefaultAssertionStacktraceFrames = 10