libGimbal 0.1.0
C17-Based Extended Standard Library and Cross-Language Runtime Framework
Loading...
Searching...
No Matches
gbl::StackFrame Class Reference
Inheritance diagram for gbl::StackFrame:
GblStackFrame

Public Member Functions

 StackFrame (GblObject *pObject=nullptr, GBL_RESULT initialResult=GBL_RESULT_UNKNOWN, SourceLocation entryLoc=SourceLocation())
 
auto getSourceCurrent (void) const -> const SourceLocation &
 
auto getSourceEntry (void) const -> const SourceLocation &
 
auto getCallRecord (void) const -> const CallRecord &
 
auto getCallRecord (void) -> CallRecord &
 
GblObjectgetObject (void) const
 
GblContextgetContext (void) const
 
void * getHandleUd (void) const
 
void * getContextUd (void) const
 
bool isValid (void) const
 
- Public Member Functions inherited from GblStackFrame
 GBL_ALIGNAS (8) GblCallRecord record
 

Additional Inherited Members

- Data Fields inherited from GblStackFrame
uint32_t sourceCurrentCaptureDepth
 
GblObjectpObject
 
GblContextpContext
 
uint32_t stackDepth
 
struct GblStackFramepPrevFrame
 

Detailed Description

Definition at line 73 of file gimbal_call_stack.hpp.

Constructor & Destructor Documentation

◆ StackFrame()

gbl::StackFrame::StackFrame ( GblObject pObject = nullptr,
GBL_RESULT  initialResult = GBL_RESULT_UNKNOWN,
SourceLocation  entryLoc = SourceLocation() 
)
inline

Definition at line 75 of file gimbal_call_stack.hpp.

75 {
76 GBL_API_STACK_FRAME_CONSTRUCT(this, pObject, initialResult, entryLoc);
77
78 }

Member Function Documentation

◆ getSourceEntry()

auto gbl::StackFrame::getSourceEntry ( void  ) const -> const SourceLocation&
inline

Definition at line 87 of file gimbal_call_stack.hpp.

87{ return *static_cast<const SourceLocation*>(&sourceEntry);}

◆ getCallRecord()

auto gbl::StackFrame::getCallRecord ( void  ) const -> const CallRecord&
inline

Definition at line 88 of file gimbal_call_stack.hpp.

88{ return *static_cast<const CallRecord*>(&record); }

The documentation for this class was generated from the following file: