diff options
| author | gingerBill <bill@gingerbill.org> | 2021-05-23 15:17:58 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-05-23 15:17:58 +0100 |
| commit | 39eccdf6b947ee57e6e2c0921e7f733bd78dd8a8 (patch) | |
| tree | 5a7d61b29d1d86f88b6f83af8d80f689c6890321 /core/runtime/default_allocators.odin | |
| parent | 71cfa0c9fe3ae50e228aaeee28b163cbcfe10b96 (diff) | |
Make `js` default to nil allocator for the time being
Diffstat (limited to 'core/runtime/default_allocators.odin')
| -rw-r--r-- | core/runtime/default_allocators.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/runtime/default_allocators.odin b/core/runtime/default_allocators.odin index 7d13f2a32..86fce47ae 100644 --- a/core/runtime/default_allocators.odin +++ b/core/runtime/default_allocators.odin @@ -1,6 +1,6 @@ package runtime -when ODIN_DEFAULT_TO_NIL_ALLOCATOR || ODIN_OS == "freestanding" { +when ODIN_DEFAULT_TO_NIL_ALLOCATOR || ODIN_OS == "freestanding" || ODIN_OS == "js" { // mem.nil_allocator reimplementation default_allocator_proc :: proc(allocator_data: rawptr, mode: mem.Allocator_Mode, |