| Index: mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl b/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
|
| index 80ecdbae9e3161e33fb7695cd52c5ba3a3b97d54..0c98df6ee108802e99b1a329db56a62b888658b6 100644
|
| --- a/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
|
| @@ -192,13 +192,6 @@ typedef mojo::StructPtr<{{union.name}}> {{union.name}}Ptr;
|
| {% endif %}
|
| {%- endfor %}
|
|
|
| -{#--- Union Serialization Helpers -#}
|
| -{% if unions %}
|
| -{% for union in unions %}
|
| -{% include "union_serialization_declaration.tmpl" %}
|
| -{%- endfor %}
|
| -{%- endif %}
|
| -
|
| {%- for struct in structs %}
|
| {%- for enum in struct.enums %}
|
| {{enum_stream_operator(enum)}}
|
| @@ -229,6 +222,13 @@ namespace mojo {
|
| {%- endif %}
|
| {%- endfor %}
|
|
|
| +{#--- Union Serialization Helpers -#}
|
| +{% if unions %}
|
| +{%- for union in unions %}
|
| +{% include "union_serialization_declaration.tmpl" %}
|
| +{%- endfor %}
|
| +{%- endif %}
|
| +
|
| } // namespace mojo
|
|
|
| #endif // {{header_guard}}
|
|
|