Porytiles
Loading...
Searching...
No Matches
panic.hpp File Reference
#include <concepts>
#include <cstdlib>
#include <source_location>
#include <string_view>
#include "fmt/format.h"
Include dependency graph for panic.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  porytiles2::StringViewSourceLoc
 A wrapper for std::string_view with a taggable std::source_location. More...
 

Namespaces

namespace  porytiles2
 

Functions

void porytiles2::panic (const StringViewSourceLoc &s)
 Unconditionally terminates the program with a panic message.
 
void porytiles2::assert_or_panic (const bool condition, const StringViewSourceLoc &s)
 Conditionally panics if the given condition is false.