diff options
author | Frank Elias <francois.elias@livio.io> | 2020-11-19 16:23:43 -0500 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2020-11-19 16:23:43 -0500 |
commit | 80b8c3bd5b96fef48531498202607554bb0ad634 (patch) | |
tree | 8227d29408654baa5bb4c4c0261a562908563df8 | |
parent | 1c2a043b620ff16e7ca84bd7e51f325bf10e8603 (diff) | |
download | sdl_ios-80b8c3bd5b96fef48531498202607554bb0ad634.tar.gz |
Fix for enum template
-rw-r--r-- | generator/templates/enums/template.h.jinja2 | 2 | ||||
-rw-r--r-- | generator/templates/enums/template.m.jinja2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generator/templates/enums/template.h.jinja2 b/generator/templates/enums/template.h.jinja2 index fb811fcd8..3d26960ec 100644 --- a/generator/templates/enums/template.h.jinja2 +++ b/generator/templates/enums/template.h.jinja2 @@ -7,7 +7,7 @@ {%- endblock -%} {%- block body %} {% include 'description.jinja2' %} -typedef SDLEnum {{ name }} SDL_SWIFT_ENUM{{ending}}; +typedef SDLEnum {{ name }} NS_TYPED_ENUM{{ending}}; {%- for param in params %} {%- include 'description_param.jinja2' %} extern {{ name }} const {{ name }}{{param.name}}{{ " __deprecated" if param.deprecated and param.deprecated }}; diff --git a/generator/templates/enums/template.m.jinja2 b/generator/templates/enums/template.m.jinja2 index e434bf758..fa82a9e44 100644 --- a/generator/templates/enums/template.m.jinja2 +++ b/generator/templates/enums/template.m.jinja2 @@ -3,7 +3,7 @@ #import "{{name}}.h" {%- block body %} {% if add_typedef %} -typedef SDLEnum {{name}} SDL_SWIFT_ENUM; +typedef SDLEnum {{name}} NS_TYPED_ENUM; {% endif -%} {%- for param in params %} {{ name }} const {{ name }}{{param.name}} = @"{{param.origin}}"; |