array_make

This commit is contained in:
gingerBill
2018-02-25 19:23:52 +00:00
parent f28a34fa99
commit d63885a495
16 changed files with 173 additions and 316 deletions
+1 -2
View File
@@ -71,7 +71,6 @@ String const NIX_SEPARATOR_STRING = {cast(u8 *)"/", 1};
#if defined(GB_SYSTEM_WINDOWS)
String odin_root_dir(void) {
String path = global_module_path;
Array<wchar_t> path_buf;
isize len, i;
gbTempArenaMemory tmp;
wchar_t *text;
@@ -80,7 +79,7 @@ String odin_root_dir(void) {
return global_module_path;
}
array_init_count(&path_buf, heap_allocator(), 300);
auto path_buf = array_make<wchar_t>(heap_allocator(), 300);
len = 0;
for (;;) {