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

Formatter for hybrid_backtrace_view. More...

#include <hybrid_unwinder.hpp>

Public Member Functions

constexpr void parse (format_parse_context &ctx) noexcept
 Parses the leading # mode flag.
 
void format (const hybrid_backtrace_view &view, const sink &out) const noexcept
 Renders the hybrid backtrace.
 

Public Attributes

char mode {'\0'}
 Output mode: ‘’#'= verbose symbols,'\0'` = standard.
 

Detailed Description

Formatter for hybrid_backtrace_view.

Emits one #index fp=0x.. pc=<symbol> line per frame, preceded by an [Exception Boundary] marker at trap transitions. A leading # in the specifier requests verbose symbol output.

Member Function Documentation

◆ format()

void microfmt::formatter< hybrid_backtrace_view >::format ( const hybrid_backtrace_view &  view,
const sink &  out 
) const
inlinenoexcept

Renders the hybrid backtrace.

Parameters
viewThe backtrace view to format.
outDestination sink.

◆ parse()

constexpr void microfmt::formatter< hybrid_backtrace_view >::parse ( format_parse_context &  ctx)
inlineconstexprnoexcept

Parses the leading # mode flag.

Parameters
ctxFormat parse context exposing the specifier text.

Member Data Documentation

◆ mode

Output mode: ‘’#'= verbose symbols,'\0'` = standard.


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