defaultTraceHandler

fnThrowable.TraceInfo defaultTraceHandler( void * ptr = null )

Get the default Throwable.TraceInfo implementation for the platform

This functions returns a trace handler, allowing to inspect the current stack trace.

IMPORTANT NOTE! the returned trace is potentially not GC allocated, and so you must call defaultTraceDeallocator when you are finished with the TraceInfo

Parameters

ptr(Windows only) The context to get the stack trace from. When null (the default), start from the current frame.

Returns

A Throwable.TraceInfo implementation suitable to iterate over the stack,

or null. If called from a finalizer (destructor), always returns null as trace handlers allocate.