Correctly support -default-to-nil-allocator for all platforms

This commit is contained in:
gingerBill
2021-11-04 11:03:21 +00:00
parent 1980f32bd6
commit 3fa7dabaa8
8 changed files with 81 additions and 92 deletions
+4 -2
View File
@@ -506,8 +506,10 @@ __init_context :: proc "contextless" (c: ^Context) {
c.temp_allocator.procedure = default_temp_allocator_proc
c.temp_allocator.data = &global_default_temp_allocator_data
c.assertion_failure_proc = default_assertion_failure_proc
when !ODIN_DISABLE_ASSERT {
c.assertion_failure_proc = default_assertion_failure_proc
}
c.logger.procedure = default_logger_proc
c.logger.data = nil