Function extractStack
Extract the stack backtrace.
void*[] extractStack
(
void*[] callstack,
ulong skip = 0LU
) nothrow @nogc @trusted;
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.
Parameters
Name | Description |
---|---|
callstack | range to receive the call stack pointers |
skip | number of near frames to skip. |
Retruns
Range where the actual pointers reside.