mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Update error handling for os2 on windows
This commit is contained in:
@@ -1,14 +1,15 @@
|
||||
package os2
|
||||
|
||||
import "core:runtime"
|
||||
|
||||
create_temp :: proc(dir, pattern: string) -> (^File, Error) {
|
||||
return _create_temp(dir, pattern)
|
||||
}
|
||||
|
||||
mkdir_temp :: proc(dir, pattern: string, allocator := context.allocator) -> (string, Error) {
|
||||
return _mkdir_temp(dir, pattern)
|
||||
mkdir_temp :: proc(dir, pattern: string, allocator: runtime.Allocator) -> (string, Error) {
|
||||
return _mkdir_temp(dir, pattern, allocator)
|
||||
}
|
||||
|
||||
temp_dir :: proc(allocator := context.allocator) -> string {
|
||||
temp_dir :: proc(allocator: runtime.Allocator) -> string {
|
||||
return _temp_dir(allocator)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user