sourceinfo.h File Reference
#include <string>

Go to the source code of this file.

Classes

class  cxxtools::SourceInfo
 Source code info classThis class is used to store information about a location in the source code. More...

Namespaces

namespace  cxxtools

Macros

#define CXXTOOLS_FUNCTION   "unknown symbol"
#define CXXTOOLS_STRINGIFY(x)   #x
#define CXXTOOLS_TOSTRING(x)   CXXTOOLS_STRINGIFY(x)
#define CXXTOOLS_SOURCEINFO_STR   __FILE__ ":" CXXTOOLS_TOSTRING(__LINE__)
#define CXXTOOLS_SOURCEINFO   cxxtools::SourceInfo(__FILE__, CXXTOOLS_TOSTRING(__LINE__), CXXTOOLS_FUNCTION)
 Construct a SourceInfo object.

Functions

std::string cxxtools::operator+ (const std::string &what, const SourceInfo &info)
std::string cxxtools::operator+ (const char *what, const SourceInfo &info)
std::string cxxtools::operator+ (const SourceInfo &info, const std::string &what)
std::string cxxtools::operator+ (const SourceInfo &info, const char *what)

Macro Definition Documentation

#define CXXTOOLS_FUNCTION   "unknown symbol"
#define CXXTOOLS_SOURCEINFO   cxxtools::SourceInfo(__FILE__, CXXTOOLS_TOSTRING(__LINE__), CXXTOOLS_FUNCTION)

Construct a SourceInfo object.

#define CXXTOOLS_SOURCEINFO_STR   __FILE__ ":" CXXTOOLS_TOSTRING(__LINE__)
#define CXXTOOLS_STRINGIFY (   x)    #x
#define CXXTOOLS_TOSTRING (   x)    CXXTOOLS_STRINGIFY(x)