alef-codegen 0.15.11

Shared codegen utilities for the alef polyglot binding generator
Documentation
1
2
3
4
5
6
7
8
9
10
/// Error codes for `{{ error_name }}`.
typedef enum {
    {{ prefix }}_NONE = 0,
{%- for variant_screaming, index in variant_variants %}
    {{ prefix }}_{{ variant_screaming }} = {{ index }},
{%- endfor %}
} {{ prefix_lower }}_t;

/// Return a static string describing the error code.
const char* {{ prefix_lower }}_error_message({{ prefix_lower }}_t code);