microfmt
Zero-allocation C++ formatting for constrained environments
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
microfmt::stack_frame Struct Reference

One frame record produced during stack unwinding. More...

#include <frame_pointer.hpp>

Public Member Functions

constexpr bool is_null () const noexcept
 Reports whether the record is an empty sentinel.
 

Public Attributes

uint32_t frame_index {0}
 Zero-based frame index (depth).
 
uintptr_t fp {0}
 Frame/saved-stack pointer of the frame.
 
uintptr_t pc {0}
 Program counter (return address) of the frame.
 

Detailed Description

One frame record produced during stack unwinding.

Member Function Documentation

◆ is_null()

constexpr bool microfmt::stack_frame::is_null ( ) const
inlineconstexprnoexcept

Reports whether the record is an empty sentinel.

Returns
true when both fp and pc are zero.

Member Data Documentation

◆ fp

uintptr_t microfmt::stack_frame::fp {0}

Frame/saved-stack pointer of the frame.

◆ frame_index

uint32_t microfmt::stack_frame::frame_index {0}

Zero-based frame index (depth).

◆ pc

uintptr_t microfmt::stack_frame::pc {0}

Program counter (return address) of the frame.


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