From 649376fcfe330090b8c6020e29b0600ca7dd9a3b Mon Sep 17 00:00:00 2001 From: Feoramund <161657516+Feoramund@users.noreply.github.com> Date: Fri, 21 Mar 2025 18:33:42 -0400 Subject: [PATCH] Add `require_results` to getters in `os2` path API --- core/os/os2/path.odin | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/os/os2/path.odin b/core/os/os2/path.odin index 24d1f35bd..e62ee11bc 100644 --- a/core/os/os2/path.odin +++ b/core/os/os2/path.odin @@ -79,6 +79,7 @@ Get the path for the currently running executable. *Allocates Using Provided Allocator* */ +@(require_results) get_executable_path :: proc(allocator: runtime.Allocator) -> (path: string, err: Error) { return _get_executable_path(allocator) } @@ -88,6 +89,7 @@ Get the directory for the currently running executable. *Allocates Using Provided Allocator* */ +@(require_results) get_executable_directory :: proc(allocator: runtime.Allocator) -> (path: string, err: Error) { path = _get_executable_path(allocator) or_return path, _ = split_path(path)