13 lines
553 B
Plaintext
13 lines
553 B
Plaintext
|
|
{%- for benum in payload.iter_enums() %}
|
||
|
|
{%- if benum.get_enum_comment() is not none %}
|
||
|
|
/**
|
||
|
|
{{ benum.get_enum_comment() }}
|
||
|
|
*/
|
||
|
|
{%- endif %}
|
||
|
|
enum class {{ benum.get_enum_name() }} : {% if benum.get_can_unsigned() -%} CKDWORD {%- else -%} CKINT {%- endif %} {
|
||
|
|
{%- for entry in benum.iter_entries() %}
|
||
|
|
{{ 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() }} */ {%- endif %}
|
||
|
|
{%- endfor %}
|
||
|
|
};
|
||
|
|
{%- endfor %}
|