This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function
pubfnsupportsUnwinding(target: *conststd.Target) bool {
returnswitch (target.cpu.arch) {
.amdgcn,
.nvptx,
.nvptx64,
.spirv32,
.spirv64,
=> false,
// Conservative guess. Feel free to update this logic with any targets// that are known to not support Dwarf unwinding.else => true,
};
}
Tells whether unwinding for this target is supported by the Dwarf standard.
See also
std.debug.SelfInfo.can_unwindwhich tells whether the Zig standard library has a working implementation of unwinding for the current target.