Definition at line 41 of file gimbal_call_stack.hpp.
◆ CallRecord() [1/3]
template<typename R >
requires (std::is_constructible_v<Result, R> && !std::same_as<Result, R>)
gbl::CallRecord::CallRecord |
( |
R |
resultValue, |
|
|
const char * |
pMessage = nullptr , |
|
|
GblObject * |
pObject = nullptr , |
|
|
SourceLocation |
srcLoc = {} |
|
) |
| |
|
inlinenoexcept |
Definition at line 46 of file gimbal_call_stack.hpp.
46 {}) noexcept:
47 CallRecord(Result(resultValue), pMessage, pObject, std::move(srcLoc)) {}
◆ CallRecord() [2/3]
gbl::CallRecord::CallRecord |
( |
Result |
result, |
|
|
const char * |
pMessage = nullptr , |
|
|
GblObject * |
pObject = nullptr , |
|
|
SourceLocation |
srcLoc = {} |
|
) |
| |
|
inlinenoexcept |
Definition at line 101 of file gimbal_call_stack.hpp.
101 {
102 GBL_CALL_RECORD_CONSTRUCT(
this, pObject,
result.getCode(), srcLoc,
"%s", pMessage? pMessage :
result.toString());
103}
GBL_RESULT result
Result code from a previous stack frame.
◆ CallRecord() [3/3]
Definition at line 51 of file gimbal_call_stack.hpp.
51 {
53 }
Captures a result, its stringified message, and a source context.
◆ getResult()
Result gbl::CallRecord::getResult |
( |
void |
| ) |
const |
|
inline |
◆ getSource()
Definition at line 57 of file gimbal_call_stack.hpp.
57 {
58 return static_cast<const SourceLocation&
>(
srcLocation);
59 }
GblSourceLocation srcLocation
Source location where the result + message had been set.
◆ getMessage()
const char * gbl::CallRecord::getMessage |
( |
void |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: