| Index: mojo/public/tools/bindings/generators/go_templates/enum.tmpl
|
| diff --git a/mojo/public/tools/bindings/generators/go_templates/enum.tmpl b/mojo/public/tools/bindings/generators/go_templates/enum.tmpl
|
| index 8bc882fd2fc18bcf8be624c0dfaf95ddac248c6c..47047579c98a63722ca2cb7a888ed4f16add42ff 100644
|
| --- a/mojo/public/tools/bindings/generators/go_templates/enum.tmpl
|
| +++ b/mojo/public/tools/bindings/generators/go_templates/enum.tmpl
|
| @@ -2,7 +2,9 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| -{% macro define(enum) %}
|
| +{% import "mojom_type_macros.tmpl" as mojom_type_macros %}
|
| +
|
| +{% macro define(enum, typepkg, package) %}
|
| type {{enum|name}} int32
|
|
|
| const (
|
| @@ -17,4 +19,6 @@ const (
|
| {% endfor %}
|
| )
|
|
|
| +{{ mojom_type_macros.writeMojomTypeDef(typepkg, enum, package, exported) }}
|
| +
|
| {% endmacro %}
|
|
|