Function open [src]

Prototype

pub fn open(allocator: Allocator) OpenError!SelfInfo

Parameters

allocator: Allocator

Possible Errors

MissingDebugInfo
UnsupportedOperatingSystem

Source

pub fn open(allocator: Allocator) OpenError!SelfInfo { nosuspend { if (builtin.strip_debug_info) return error.MissingDebugInfo; switch (native_os) { .linux, .freebsd, .netbsd, .dragonfly, .openbsd, .macos, .solaris, .illumos, .windows, => return try SelfInfo.init(allocator), else => return error.UnsupportedOperatingSystem, } } }