Add action name comment to generated code
@@ -39,6 +39,9 @@ for table in hlir.tables:
for ctl in hlir.controls:
for act in ctl.actions:
+ name = act.annotations.annotations.get('name')
+ if name:
+ #[ // action name: ${name.expr[0].value}
#{ void action_code_${act.name}(action_${act.name}_params_t parameters, SHORT_STDPARAMS) {
#[ uint32_t value32, res32, mask32;
#[ (void)value32; (void)res32; (void)mask32;
