Allow type inference on enum comparisons. Add chdir. Fix bug when command was missing. Allow {} on basic types.

This commit is contained in:
Christoffer Lerno
2023-03-13 16:25:03 +01:00
parent fb761b0cc5
commit 1b27264f07
10 changed files with 109 additions and 8 deletions

View File

@@ -40,6 +40,7 @@ fn bool is_file(Path path) => os::native_is_file(path.as_str());
fn usz! file_size(Path path) => os::native_file_size(path.as_str());
fn bool exists(Path path) => os::native_file_or_dir_exists(path.as_str());
fn Path! tgetcwd() => getcwd(mem::temp()) @inline;
fn void! chdir(Path path) => os::native_chdir(path) @inline;
fn Path! temp_directory(Allocator* using = mem::heap()) => os::native_temp_directory(using);
macro bool is_separator(char c, PathEnv path_env = DEFAULT_PATH_ENV)