| ... | @@ -771,14 +771,14 @@ pub fn selfExePathW(out_buffer: *[os.windows.PATH_MAX_WIDE]u16) SelfExePathError | ... | @@ -771,14 +771,14 @@ pub fn selfExePathW(out_buffer: *[os.windows.PATH_MAX_WIDE]u16) SelfExePathError |
| 771 | | 771 | |
| 772 | /// `selfExeDirPath` except allocates the result on the heap. | 772 | /// `selfExeDirPath` except allocates the result on the heap. |
| 773 | /// Caller owns returned memory. | 773 | /// Caller owns returned memory. |
| 774 | pub fn selfExeDirPathAlloc(allocator: *Allocator) SelfExePathError![]u8 { | 774 | pub fn selfExeDirPathAlloc(allocator: *Allocator) ![]u8 { |
| 775 | var buf: [MAX_PATH_BYTES]u8 = undefined; | 775 | var buf: [MAX_PATH_BYTES]u8 = undefined; |
| 776 | return mem.dupe(allocator, u8, try selfExeDirPath(&buf)); | 776 | return mem.dupe(allocator, u8, try selfExeDirPath(&buf)); |
| 777 | } | 777 | } |
| 778 | | 778 | |
| 779 | /// Get the directory path that contains the current executable. | 779 | /// Get the directory path that contains the current executable. |
| 780 | /// Returned value is a slice of out_buffer. | 780 | /// Returned value is a slice of out_buffer. |
| 781 | pub fn selfExeDirPath(out_buffer: *[MAX_PATH_BYTES]u8) ![]const u8 { | 781 | pub fn selfExeDirPath(out_buffer: *[MAX_PATH_BYTES]u8) SelfExePathError![]const u8 { |
| 782 | if (os.linux.is_the_target) { | 782 | if (os.linux.is_the_target) { |
| 783 | // If the currently executing binary has been deleted, | 783 | // If the currently executing binary has been deleted, |
| 784 | // the file path looks something like `/a/b/c/exe (deleted)` | 784 | // the file path looks something like `/a/b/c/exe (deleted)` |