mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-04 04:48:40 +00:00
metagen: simplify metacode structs
This commit is contained in:
+3
-8
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user