fn captureStackTrace(first_address: ?usize, stack_trace: *std.builtin.StackTrace) void

Returns a slice with the same pointer as addresses, with a potentially smaller len. On Windows, when first_address is not null, we ask for at least 32 stack frames, and then try to find the first address. If addresses.len is more than 32, we capture that many stack frames exactly, and then look for the first address, chopping off the irrelevant frames and shifting so that the returned addresses pointer equals the passed in addresses pointer.

Parameters

first_address: ?usize,
stack_trace: *std.builtin.StackTrace,