mirror of
https://github.com/odin-lang/Odin.git
synced 2026-10-11 15:27:06 -04:00
Add struct #simple to force a struct to use simple comparison if all of the fields "nearly simply comparable".
This commit is contained in:
1 parent
4a7fb46667
commit
07d814d9cf
10 files changed
+67
-9
No files matched your search
+4
-2
@@ -12692,8 +12692,10 @@ gb_internal gbString write_expr_to_string(gbString str, Ast *node, bool shorthan
|
||||
str = write_expr_to_string(str, st->polymorphic_params, shorthand);
|
||||
str = gb_string_appendc(str, ") ");
|
||||
}
|
||||
if (st->is_packed) str = gb_string_appendc(str, "#packed ");
|
||||
if (st->is_raw_union) str = gb_string_appendc(str, "#raw_union ");
|
||||
if (st->is_packed) str = gb_string_appendc(str, "#packed ");
|
||||
if (st->is_raw_union) str = gb_string_appendc(str, "#raw_union ");
|
||||
if (st->is_all_or_none) str = gb_string_appendc(str, "#all_or_none ");
|
||||
if (st->is_simple) str = gb_string_appendc(str, "#simple ");
|
||||
if (st->align) {
|
||||
str = gb_string_appendc(str, "#align ");
|
||||
str = write_expr_to_string(str, st->align, shorthand);
|
||||
|
||||
Reference in new issue
Block a user