mirror of
https://codeberg.org/andyscott/ziglings.git
synced 2024-09-20 03:48:07 -04:00
17 lines
361 B
Diff
17 lines
361 B
Diff
|
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),
|