diff options
| author | Laytan <laytanlaats@hotmail.com> | 2024-02-06 20:37:19 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-03-04 17:26:19 +0100 |
| commit | 2a39c60fe4988339a910828ba6dcb022e3086d7a (patch) | |
| tree | eb56f136a53aa534e2894348da7d9b3d7bd8c2cb /core/encoding/cbor | |
| parent | b11d839fb6dab106a557cf65257e31644a84725d (diff) | |
encoding/cbor: respect default to panic allocator
Diffstat (limited to 'core/encoding/cbor')
| -rw-r--r-- | core/encoding/cbor/tags.odin | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/encoding/cbor/tags.odin b/core/encoding/cbor/tags.odin index c9ddaed56..040ce2458 100644 --- a/core/encoding/cbor/tags.odin +++ b/core/encoding/cbor/tags.odin @@ -96,7 +96,7 @@ tag_register_number :: proc(impl: Tag_Implementation, nr: Tag_Number, id: string // Controls initialization of default tag implementations. // JS and WASI default to a panic allocator so we don't want to do it on those. -INITIALIZE_DEFAULT_TAGS :: #config(CBOR_INITIALIZE_DEFAULT_TAGS, !ODIN_DEFAULT_TO_NIL_ALLOCATOR && ODIN_OS != .JS && ODIN_OS != .WASI) +INITIALIZE_DEFAULT_TAGS :: #config(CBOR_INITIALIZE_DEFAULT_TAGS, !ODIN_DEFAULT_TO_PANIC_ALLOCATOR && !ODIN_DEFAULT_TO_NIL_ALLOCATOR) @(private, init, disabled=!INITIALIZE_DEFAULT_TAGS) tags_initialize_defaults :: proc() { |