Files
Odin/core/os/os2/temp_file_wasi.odin
2025-01-18 22:23:44 +01:00

10 lines
258 B
Odin

#+private
package os2
import "base:runtime"
_temp_dir :: proc(allocator: runtime.Allocator) -> (string, runtime.Allocator_Error) {
// NOTE: requires user to add /tmp to their preopen dirs, no standard way exists.
return clone_string("/tmp", allocator)
}