Make procedure parameters just named values rather than copied variables
This commit is contained in:
1 parent
3d531be711
commit
f25818e923
19 files changed
+138
-131
No files matched your search
@@ -9,6 +9,6 @@ foreign {
|
||||
get_cwd :: proc(allocator := context.temp_allocator) -> string {
|
||||
buffer := make([]u16, MAX_PATH_WIDE, allocator);
|
||||
_get_cwd_wide(Wstring(&buffer[0]), MAX_PATH_WIDE);
|
||||
file := ucs2_to_utf8(buffer[:], allocator);
|
||||
file := utf16_to_utf8(buffer[:], allocator);
|
||||
return strings.trim_right_null(file);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user