3.1.19.2.1. waf_tools.diag_array_config_validate.render_diag_array
- waf_tools.diag_array_config_validate.render_diag_array(entries: list[dict]) str
Render validated diagnostic array entries into C initializer lines.
Each raw entry is validated before rendering, so that the generated code can never contain unmapped values. This function shall be called by the Waf code generator.
- Parameters:
entries – Raw
array_entriesas read fromdiag_array_cfg.json.- Returns:
C initializer lines for the diagnostic array.
- Return type:
str
- Raises:
InvalidDiagConfigurationError – If an entry is invalid.