HavoqGT
error.hpp File Reference
#include <stdexcept>
Include dependency graph for error.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define S(x)   #x
 
#define S_(x)   S(x)
 
#define S__LINE__   S_(__LINE__)
 
#define HAVOQGT_ERROR()   throw std::runtime_error("Error at " __FILE__ " " S__LINE__);
 
#define HAVOQGT_ERROR_MSG(msg)   throw std::runtime_error(msg "\nError at " __FILE__ " " S__LINE__);
 

Macro Definition Documentation

#define HAVOQGT_ERROR ( )    throw std::runtime_error("Error at " __FILE__ " " S__LINE__);

Definition at line 61 of file error.hpp.

#define HAVOQGT_ERROR_MSG (   msg)    throw std::runtime_error(msg "\nError at " __FILE__ " " S__LINE__);

Definition at line 62 of file error.hpp.

#define S (   x)    #x

Definition at line 57 of file error.hpp.

#define S_ (   x)    S(x)

Definition at line 58 of file error.hpp.

#define S__LINE__   S_(__LINE__)

Definition at line 59 of file error.hpp.