diff options
author | Frank Elias <francois.elias@livio.io> | 2020-11-20 09:30:28 -0500 |
---|---|---|
committer | Frank Elias <francois.elias@livio.io> | 2020-11-20 09:30:28 -0500 |
commit | 6cdaa4d92c1d3ccc07d13c74b88caddb1a1eeb96 (patch) | |
tree | 87f97d02876fba7f612552d3f703a22cca8c82ed | |
parent | 80b8c3bd5b96fef48531498202607554bb0ad634 (diff) | |
download | sdl_ios-6cdaa4d92c1d3ccc07d13c74b88caddb1a1eeb96.tar.gz |
Fix for the remaining SDL_SWIFT_ENUMbugfix/issue-1834-generator-should-generator-enums-with-NS_TYPED_ENUM-instead-of-SDL_SWIFT_ENUM
-rw-r--r-- | generator/templates/SDLRPCFunctionNames.h.jinja2 | 2 | ||||
-rw-r--r-- | generator/templates/SDLRPCParameterNames.h.jinja2 | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/generator/templates/SDLRPCFunctionNames.h.jinja2 b/generator/templates/SDLRPCFunctionNames.h.jinja2 index 5e13b735b..419081b51 100644 --- a/generator/templates/SDLRPCFunctionNames.h.jinja2 +++ b/generator/templates/SDLRPCFunctionNames.h.jinja2 @@ -6,7 +6,7 @@ /** * All RPC request / response / notification names */ -typedef SDLEnum SDLRPCFunctionName SDL_SWIFT_ENUM; +typedef SDLEnum SDLRPCFunctionName NS_TYPED_ENUM; {% for param in params %} {#- description if exist in source xml, will be putted here since if exist in source xml, will be putted here -#} diff --git a/generator/templates/SDLRPCParameterNames.h.jinja2 b/generator/templates/SDLRPCParameterNames.h.jinja2 index 7a5bbb746..93bf39c88 100644 --- a/generator/templates/SDLRPCParameterNames.h.jinja2 +++ b/generator/templates/SDLRPCParameterNames.h.jinja2 @@ -6,7 +6,7 @@ NS_ASSUME_NONNULL_BEGIN -typedef NSString* SDLRPCParameterName SDL_SWIFT_ENUM; +typedef NSString* SDLRPCParameterName NS_TYPED_ENUM; {% for param in params %} extern SDLRPCParameterName const SDLRPCParameterName{{ param.name }}; {%- endfor %} |