metagen: simplify metacode structs

This commit is contained in:
Ryan Fleury
2024-02-13 11:00:58 -08:00
parent ea840a71e8
commit 742d2387e2
6 changed files with 34 additions and 46 deletions
+3 -8
View File
@@ -70,15 +70,10 @@ EVAL_ResultCodeTable:
{ MalformedBytecode "Malformed bytecode." }
}
@table_gen
@enum(U32) EVAL_ExprKind:
{
`typedef U32 EVAL_ExprKind;`;
`enum`;
`{`;
@expand(EVAL_ExprKindTable a) `EVAL_ExprKind_$(a.name),`;
`EVAL_ExprKind_COUNT`;
`};`;
``;
@expand(EVAL_ExprKindTable a) `$(a.name)`,
COUNT,
}
@enum EVAL_ResultCode: