Fix push_* with better defer system

This commit is contained in:
Ginger Bill
2016-09-23 19:45:45 +01:00
parent a31bab5aae
commit fa7d7938e1
9 changed files with 948 additions and 364 deletions

View File

@@ -12,7 +12,7 @@ String get_module_dir(gbAllocator a) {
gbTempArenaMemory tmp = gb_temp_arena_memory_begin(&string_buffer_arena);
defer (gb_temp_arena_memory_end(tmp));
wchar_t *text = gb_alloc_array(string_buffer_allocator, wchar_t, len+1);
String16 str = {text, len};
@@ -25,7 +25,7 @@ String get_module_dir(gbAllocator a) {
}
path.len--;
}
return path;
}