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
@@ -1733,15 +1733,10 @@ DF_DevToggleTable:
COUNT,
}
@table_gen
@struct DF_CmdParams:
{
`typedef struct DF_CmdParams DF_CmdParams;`;
`struct DF_CmdParams`;
`{`;
`U64 slot_props[(DF_CmdParamSlot_COUNT + 63) / 64];`;
@expand(DF_CmdParamSlotTable a)
`$(a.c_type) $(a.name_lower);`;
`};`;
`U64 slot_props[(DF_CmdParamSlot_COUNT + 63) / 64]`;
@expand(DF_CmdParamSlotTable a) `$(a.c_type) $(a.name_lower)`;
}
@table_gen_data(type:Rng1U64, fallback:0)
+1
View File
@@ -409,6 +409,7 @@ B32 prefer_dasm;
B32 force_confirm;
};
DF_CORE_VIEW_RULE_EVAL_RESOLUTION_FUNCTION_DEF(array);
DF_CORE_VIEW_RULE_EVAL_RESOLUTION_FUNCTION_DEF(bswap);
DF_CORE_VIEW_RULE_VIZ_BLOCK_PROD_FUNCTION_DEF(list);