1
0
Files
libcmo21/Assets/CodeGen/EnumsMigration/EnumsRender/templates/generic.hpp.jinja

13 lines
591 B
Plaintext
Raw Normal View History

{%- for benum in payload.iter_enums() %}
{%- if benum.get_enum_comment() is not none %}
/**
2026-01-27 16:38:29 +08:00
{{ benum.get_enum_comment() | block_comment(' * ') }}
*/
{%- endif %}
enum class {{ benum.get_enum_name() }} : {% if benum.get_can_unsigned() -%} CKDWORD {%- else -%} CKINT {%- endif %} {
{%- for entry in benum.iter_entries() %}
2026-01-27 16:38:29 +08:00
{{ entry.get_entry_name() }} {%- if entry.get_entry_value() is not none %} = {{ entry.get_entry_value() }} {%- endif %}, {%- if entry.get_entry_comment() is not none %} /**< {{ entry.get_entry_comment() | line_comment }} */ {%- endif %}
{%- endfor %}
};
{%- endfor %}