Chromium Code Reviews| Index: mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| diff --git a/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl b/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| index 21c70db3038ed615f53482f0dd94e90ae99b628a..27b6d9cb0a83809fad859d37d7aec334b4794385 100644 |
| --- a/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| +++ b/mojo/public/tools/bindings/generators/python_templates/module_macros.tmpl |
| @@ -37,3 +37,13 @@ |
| {% endif %} |
| } |
| {%- endmacro -%} |
| + |
| +{%- macro union_descriptor(union) -%} |
| +{ |
| + 'fields': [ |
| +{% for field in union.fields %} |
| + {{field|union_field_descriptor}}, |
|
qsr
2015/07/17 10:53:58
Alignemtn is still wrong. The issue was with the f
azani
2015/07/17 20:38:16
Thanks for the clarification.
|
| +{% endfor %} |
| + ], |
| +} |
| +{%- endmacro -%} |