Improve default temp_allocator; make nil loggers do nothing; improve mem.Scratch_Allocator behaviour

This commit is contained in:
gingerBill
2020-10-02 16:06:55 +01:00
parent a65553293f
commit 6eeb12a986
4 changed files with 195 additions and 130 deletions
+2 -2
View File
@@ -525,8 +525,8 @@ __init_context :: proc "contextless" (c: ^Context) {
}
@builtin
init_global_temporary_allocator :: proc(data: []byte, backup_allocator := context.allocator) {
default_temp_allocator_init(&global_default_temp_allocator_data, data, backup_allocator);
init_global_temporary_allocator :: proc(size: int, backup_allocator := context.allocator) {
default_temp_allocator_init(&global_default_temp_allocator_data, size, backup_allocator);
}