os/os2: add get_executable_path and get_executable_directory

This commit is contained in:
Laytan Laats committed 2025-01-21 18:54:45 +01:00
1 parent 223970671f
commit b673642412
10 files changed
+234 -3

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
package darwin
foreign import system "system:System.framework"
foreign system {
_NSGetExecutablePath :: proc(buf: [^]byte, bufsize: ^u32) -> i32 ---
}