Skip to content

Stack Trace Capture Rt

Spice
import "std/runtime/stack_trace_capture_rt";

Functions

captureReturnAddresses

Spice
public f<int> captureReturnAddresses(byte** addresses, int capacity, int skipFrames)

Fills 'addresses' with up to 'capacity' return addresses, most recent call first, and returns how many were written.

Parameters

Name Type Description
addresses byte** Buffer to write into
capacity int Maximum number of addresses to write
skipFrames int Number of frames to drop from the top, counted from this function's own frame

Returns: int — Number of addresses written