ziglings/patches/patches/082_anonymous_structs3.patch

17 lines
361 B
Diff
Raw Normal View History

2021-05-09 18:58:56 -04:00
85c85
< const fields = ???;
---
> const fields = @typeInfo(@TypeOf(tuple)).Struct.fields;
92c92
< for (fields) |field| {
---
> inline for (fields) |field| {
120,122c120,122
< field.???,
< field.???,
< ???,
---
> field.name,
> field.field_type,
> @field(tuple, field.name),