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 4c667aee9d7d3084e373e8e59c6c5a12a9746628..84b95c85562f2e256aaf96234d5619737424bed7 100644 |
--- a/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl |
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl |
@@ -20,6 +20,11 @@ |
namespace {{namespace}} { |
{%- endfor %} |
+{#--- Constants #} |
+{% for constant in module.constants %} |
+extern const {{constant.kind|cpp_pod_type}} {{constant.name}}; |
+{%- endfor %} |
+ |
{#--- Enums #} |
{% for enum in enums %} |
{% include "enum_declaration.tmpl" %} |