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

Formatter for remote_trap_view. More...

#include <exception_frame.hpp>

Public Member Functions

constexpr void parse (format_parse_context &ctx) noexcept
 Parses the leading # mode flag.
 
void format (const remote_trap_view &view, const sink &out) const noexcept
 Renders the trap summary.
 

Public Attributes

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

Detailed Description

Formatter for remote_trap_view.

Emits a multi-line summary with the trap level, mode, reason, PC, SP, FP, and optionally LR. A leading # in the specifier requests verbose symbol output.

Member Function Documentation

◆ format()

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

Renders the trap summary.

Parameters
viewThe trap view to format.
outDestination sink.

◆ parse()

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

Parses the leading # mode flag.

Parameters
ctxFormat parse context exposing the specifier text.

Member Data Documentation

◆ mode

char microfmt::formatter< remote_trap_view >::mode {'\0'}

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


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