extractStack

Extract the stack backtrace.

The pointers returned from the function are one less than the actual number. This is so that a symbol lookup will report the correct function even when the call to _d_throw_exception was the last thing in it.

nothrow @trusted @nogc
void*[]
extractStack
(
void*[] callstack
,
size_t skip = 0
)

Parameters

callstack void*[]

range to receive the call stack pointers

skip size_t

number of near frames to skip.

Retruns: Range where the actual pointers reside.

Meta