os/os2: add get_executable_path and get_executable_directory

This commit is contained in:
Laytan Laats
2025-01-21 18:54:45 +01:00
parent 223970671f
commit b673642412
10 changed files with 234 additions and 3 deletions
+7
View File
@@ -0,0 +1,7 @@
package darwin
foreign import system "system:System.framework"
foreign system {
_NSGetExecutablePath :: proc(buf: [^]byte, bufsize: ^u32) -> i32 ---
}