#include <v8-source-location.h>
Encapsulates source location information. Mimics C++20's std::source_location
.
◆ SourceLocation()
constexpr v8::SourceLocation::SourceLocation |
( |
| ) |
|
|
constexprdefault |
Constructs unspecified source location information.
◆ Current()
Construct source location information corresponding to the location of the call site.
◆ FileName()
constexpr const char * v8::SourceLocation::FileName |
( |
| ) |
const |
|
inlineconstexpr |
Returns the name of the current source file represented by this object.
- Returns
- the file name as cstring.
◆ Function()
constexpr const char * v8::SourceLocation::Function |
( |
| ) |
const |
|
inlineconstexpr |
Returns the name of the function associated with the position represented by this object, if any.
- Returns
- the function name as cstring.
◆ Line()
constexpr size_t v8::SourceLocation::Line |
( |
| ) |
const |
|
inlineconstexpr |
Returns the line number represented by this object.
- Returns
- the line number.
◆ ToString()
std::string v8::SourceLocation::ToString |
( |
| ) |
const |
|
inline |
Returns a human-readable string representing this object.
- Returns
- a human-readable string representing source location information.
The documentation for this class was generated from the following file: