Add -default-to-nil-allocator flag (sets ODIN_DEFAULT_TO_NIL_ALLOCATOR)

This commit is contained in:
gingerBill committed 2020-09-15 12:27:53 +01:00
1 parent bfc7d74967
commit edbad0709e
4 files changed
+13 -3

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
package runtime
when ODIN_OS == "freestanding" {
when ODIN_DEFAULT_TO_NIL_ALLOCATOR || ODIN_OS == "freestanding" {
// mem.nil_allocator reimplementation
default_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode,