StackTrace.trace

ulong[] trace(size_t skip = 0, CONTEXT * context = null)

Receive a stack trace in the form of an address list. One form accepts an allocated buffer, the other form automatically allocates the buffer.

Parameters

skipHow many stack frames should be skipped.
contextThe context that should be used. If null the current context is used.
bufferThe buffer to use for the trace. This should be at least 63 elements.

Returns

A list of addresses that can be passed to resolve at a later point in time.
ulong[] trace(ulong[] buffer, size_t skip = 0, CONTEXT * context = null) @nogc

ditto