pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfInfo"))
root.debug.SelfInfo
else
TargetInfo(native_os, native_arch) 64
65
66
67pub const SelfInfo = if (@hasDecl(root, "debug") and @hasDecl(root.debug, "SelfInfo"))
root.debug.SelfInfo
else
TargetInfo(native_os, native_arch)
This type abstracts the target-specific implementation of accessing this process' own debug information behind a generic interface which supports looking up source locations associated with addresses, as well as unwinding the stack where a safe mechanism to do so exists.
The Zig Standard Library provides default implementations of
SelfInfofor common targets, but the implementation can be overriden by exposingroot.debug.SelfInfo. SettingSelfInfotovoidindicates that theSelfInfoAPI is not supported.This type must expose the following declarations: