Contents

SushiEngine::Assertion

describe_stack_trace

std::size_t describe_stack_trace(const StackTrace &trace, char *destination, std::size_t capacity) noexcept

Parameters

NameType
traceconst StackTrace &
destinationchar *
capacitystd::size_t

Returns

std::size_t

The characters written; the symbol part appears only where the platform resolves.

Description

Writes one line per frame, "#N module+0xOFFSET [symbol file:line]", into destination; writes a fixed "stack trace unavailable" line instead of nothing when trace has no frames.