diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2025-11-05 13:30:40 +0000 |
|---|---|---|
| committer | gingerBill <gingerBill@users.noreply.github.com> | 2025-11-05 13:30:40 +0000 |
| commit | 593d2e6daa1f0dd9c24c7fb8704463c8db757af0 (patch) | |
| tree | bb1ba4fc37dc14b11efd9197208ba1372aac9f21 /base | |
| parent | ea5db0e04864f7e453a5b5faa305df22543c4b75 (diff) | |
Add `#all_or_none`
Diffstat (limited to 'base')
| -rw-r--r-- | base/runtime/core.odin | 8 | ||||
| -rw-r--r-- | base/runtime/print.odin | 6 |
2 files changed, 7 insertions, 7 deletions
diff --git a/base/runtime/core.odin b/base/runtime/core.odin index 2e70147db..58a0b8ad1 100644 --- a/base/runtime/core.odin +++ b/base/runtime/core.odin @@ -118,10 +118,10 @@ Type_Info_Parameters :: struct { // Only used for procedures parameters and resu Type_Info_Struct_Flags :: distinct bit_set[Type_Info_Struct_Flag; u8] Type_Info_Struct_Flag :: enum u8 { - packed = 0, - raw_union = 1, - _ = 2, - align = 3, + packed = 0, + raw_union = 1, + all_or_none = 2, + align = 3, } Type_Info_Struct :: struct { diff --git a/base/runtime/print.odin b/base/runtime/print.odin index 2cfb6661b..90119c699 100644 --- a/base/runtime/print.odin +++ b/base/runtime/print.odin @@ -408,9 +408,9 @@ print_type :: #force_no_inline proc "contextless" (ti: ^Type_Info) { } print_string("struct ") - if .packed in info.flags { print_string("#packed ") } - if .raw_union in info.flags { print_string("#raw_union ") } - // if .no_copy in info.flags { print_string("#no_copy ") } + if .packed in info.flags { print_string("#packed ") } + if .raw_union in info.flags { print_string("#raw_union ") } + if .all_or_none in info.flags { print_string("#all_or_none ") } if .align in info.flags { print_string("#align(") print_u64(u64(ti.align)) |