#include <v8-source-location.h>
|
constexpr | SourceLocation (const char *function, const char *file, size_t line) |
|
Encapsulates source location information. Mimics C++20's std::source_location
.
Definition at line 31 of file v8-source-location.h.
◆ SourceLocation() [1/2]
v8::SourceLocation::SourceLocation |
( |
| ) |
|
|
constexprdefault |
Constructs unspecified source location information.
◆ SourceLocation() [2/2]
v8::SourceLocation::SourceLocation |
( |
const char * | function, |
|
|
const char * | file, |
|
|
size_t | line ) |
|
inlineconstexprprivate |
◆ Current()
Construct source location information corresponding to the location of the call site.
Definition at line 44 of file v8-source-location.h.
◆ FileName()
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.
Definition at line 65 of file v8-source-location.h.
◆ Function()
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.
Definition at line 58 of file v8-source-location.h.
◆ Line()
size_t v8::SourceLocation::Line |
( |
| ) |
const |
|
inlineconstexpr |
Returns the line number represented by this object.
- Returns
- the line number.
Definition at line 72 of file v8-source-location.h.
◆ 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.
Definition at line 79 of file v8-source-location.h.
◆ file_
const char* v8::SourceLocation::file_ = nullptr |
|
private |
◆ function_
const char* v8::SourceLocation::function_ = nullptr |
|
private |
◆ line_
size_t v8::SourceLocation::line_ = 0u |
|
private |
The documentation for this class was generated from the following file: