ziglings/patches/patches/082_anonymous_structs3.patch

17 lines
355 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,
2023-01-21 11:03:40 -05:00
> field.type,
2021-05-09 18:58:56 -04:00
> @field(tuple, field.name),