candlewick 0.1.0
A renderer
Loading...
Searching...
No Matches
errors.h File Reference
#include <SDL3/SDL_log.h>
#include <SDL3/SDL_assert.h>
#include <stdexcept>
#include <string>
#include <string_view>
#include <format>
#include <source_location>

Go to the source code of this file.

Classes

struct  candlewick::RAIIException
 Wrapper for std::runtime_error, which prints out the filename and code line. More...
 

Namespaces

namespace  candlewick
 
namespace  candlewick::detail
 

Functions

void candlewick::unreachable ()
 
std::string candlewick::detail::_error_message_impl (std::string_view fname, std::string_view fmtstr, std::format_args args)
 
template<typename... Ts>
std::string candlewick::detail::error_message_format (std::string_view fname, std::string_view _fmtstr, Ts &&...args)
 
template<typename... Ts>
void candlewick::terminate_with_message (std::source_location location, std::string_view fmt, Ts &&...args)
 
template<typename... Ts>
void candlewick::terminate_with_message (std::string_view fmt, Ts &&...args)
 
void candlewick::unreachable_with_message (std::string_view msg, std::source_location location=std::source_location::current())