diff options
| author | Laytan <laytanlaats@hotmail.com> | 2024-02-06 19:17:07 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2024-03-04 17:26:19 +0100 |
| commit | a664d9804f64f7f9d6cb4a8bbe2e618297663c60 (patch) | |
| tree | 64943194e189ca9d614c9a1122be27df8590d8d2 /core/encoding/cbor | |
| parent | c4e45d509a25ad1d341a5519606ddff59bfeb64e (diff) | |
encoding/cbor: remove usage of incl_elem and excl_elem
Diffstat (limited to 'core/encoding/cbor')
| -rw-r--r-- | core/encoding/cbor/coding.odin | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/encoding/cbor/coding.odin b/core/encoding/cbor/coding.odin index a9bb6e408..a5f21af1f 100644 --- a/core/encoding/cbor/coding.odin +++ b/core/encoding/cbor/coding.odin @@ -262,7 +262,7 @@ _DECODE_PROGRESS_GUARD :: proc(d: ^Decoder) -> (is_begin: bool, tmp: runtime.Are } is_begin = true - incl_elem(&d.flags, Decoder_Flag._In_Progress) + d.flags |= { ._In_Progress } if context.allocator != context.temp_allocator { tmp = runtime.default_temp_allocator_temp_begin() @@ -280,7 +280,7 @@ _decode_progress_end :: proc(d: ^Decoder, is_begin: bool, tmp: runtime.Arena_Tem return } - excl_elem(&d.flags, Decoder_Flag._In_Progress) + d.flags &~= { ._In_Progress } runtime.default_temp_allocator_temp_end(tmp) } @@ -292,7 +292,7 @@ _ENCODE_PROGRESS_GUARD :: proc(e: ^Encoder) -> (is_begin: bool, tmp: runtime.Are } is_begin = true - incl_elem(&e.flags, Encoder_Flag._In_Progress) + e.flags |= { ._In_Progress } if context.allocator != context.temp_allocator { tmp = runtime.default_temp_allocator_temp_begin() @@ -310,7 +310,7 @@ _encode_progress_end :: proc(e: ^Encoder, is_begin: bool, tmp: runtime.Arena_Tem return } - excl_elem(&e.flags, Encoder_Flag._In_Progress) + e.flags &~= { ._In_Progress } runtime.default_temp_allocator_temp_end(tmp) } |