tlx
core.cpp File Reference
#include <tlx/die/core.hpp>
#include <atomic>
#include <iostream>
#include <sstream>

Go to the source code of this file.

Namespaces

 tlx
 

Functions

void die_with_message (const std::string &msg)
 die with message - either throw an exception or die via std::terminate() More...
 
void die_with_message (const char *msg, const char *file, size_t line)
 die with message - either throw an exception or die via std::terminate() More...
 
void die_with_message (const std::string &msg, const char *file, size_t line)
 die with message - either throw an exception or die via std::terminate() More...
 
bool set_die_with_exception (bool b)
 Switch between dying via std::terminate() and throwing an exception. More...
 

Variables

static std::atomic< bool > s_die_with_exception