Class sourceloc
boost::stacktrack::sourceloc — build info class, holds information about a specific location (filename/line number) in the source code
Synopsis
Description
This class is used by the StackTrack macros to capture static instances representing a location in the source code
sourceloc construct/copy/destruct
-
sourceloc(const char * filename, int linenum, const char * funcname);
Parameters
- filename
filename, typically from __FILE__
- funcname
name of function (if known, from BOOST_CURRENT_FUNCTION)
- linenum
line number, typically from __LINE__
sourceloc public member functions
-
std::string filename() const;
Returns:
filename for location
-
std::string funcname() const;
Returns:
filename for location
-
int linenumber() const;
Returns:
line number for location
-
int filenumber() const;
Returns:
file number for location