mirror of
https://github.com/odin-lang/Odin.git
synced 2026-04-15 02:52:38 +00: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:
@@ -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