Exception class with an easy-to-use embedded backtrace. More...
Classes | |
class | Lox::Exception |
Exception class with an easy-to-use embedded backtrace. More... | |
Namespaces | |
Lox | |
Common methods and functionality easily shared between projects. | |
Macros | |
#define | LOX_CATCH_DISPLAY_AND_RETRHOW |
Standard exception handling for all exception types we expect to encounter. More... | |
#define | LOX_WHERE __PRETTY_FUNCTION__, __FILE__, __LINE__ |
#define | LOX_WHERECLAUSE const std::string &func, const std::string &file, const int line |
#define | LOX_WHEREPASS func, file, line |
#define | LOX_WHEREUNKNOWN "", "", 0 |
Functions | |
std::string | Lox::demangle (std::string name) |
Demangle the given C++ name. More... | |
VStr | Lox::getBacktrace (int skip=2) |
Store the backtrace in a string array. More... | |
std::ostream & | operator<< (std::ostream &os, const Lox::Exception &e) |
Easily stream exception objects to std::cout or other similar streams. More... | |
Exception class with an easy-to-use embedded backtrace.
#define LOX_CATCH_DISPLAY_AND_RETRHOW |
Standard exception handling for all exception types we expect to encounter.
Referenced by Lox::PQDB::exec().
#define LOX_WHERE __PRETTY_FUNCTION__, __FILE__, __LINE__ |
Referenced by Lox::PQDB::exec1(), Lox::Measurement::internalSanityCheck(), Lox::makeLabel(), and Lox::readTextFile().
#define LOX_WHERECLAUSE const std::string &func, const std::string &file, const int line |
#define LOX_WHEREPASS func, file, line |
Referenced by Lox::Exception::Exception().
#define LOX_WHEREUNKNOWN "", "", 0 |
|
inline |
Easily stream exception objects to std::cout or other similar streams.