v8
9.4.146 (node 16.13.0)
V8 is Google's open source JavaScript engine
|
#include <source-location.h>
Public Member Functions | |
constexpr | SourceLocation ()=default |
constexpr const char * | Function () const |
constexpr const char * | FileName () const |
constexpr size_t | Line () const |
std::string | ToString () const |
Static Public Member Functions | |
static constexpr SourceLocation | Current () |
Encapsulates source location information. Mimics C++20's std::source_location
.
Definition at line 31 of file source-location.h.
|
constexprdefault |
Constructs unspecified source location information.
Referenced by IgnoreLocationPolicy::Location().
|
inlinestaticconstexpr |
Construct source location information corresponding to the location of the call site.
Definition at line 44 of file source-location.h.
|
inlineconstexpr |
Returns the name of the current source file represented by this object.
Definition at line 65 of file source-location.h.
|
inlineconstexpr |
Returns the name of the function associated with the position represented by this object, if any.
Definition at line 58 of file source-location.h.
|
inlineconstexpr |
Returns the line number represented by this object.
Definition at line 72 of file source-location.h.
std::string ToString | ( | ) | const |
Returns a human-readable string representing this object.