Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1353)

Unified Diff: mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl

Issue 2721953003: Makes mojo generator generate export for constants (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 9306d2f816d01b260f5203732f517b3d5b06f799..bfb18fa8f0b9475f06711128141f10a7891579df 100644
--- a/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
+++ b/mojo/public/tools/bindings/generators/cpp_templates/module.h.tmpl
@@ -97,7 +97,7 @@ using {{enum.name}} = {{enum.name}}; // Alias for definition in the parent name
{#--- Constants #}
{%- for constant in module.constants %}
-{{constant|format_constant_declaration}};
+{{constant|format_constant_declaration(export_attribute=export_attribute)}};
{%- endfor %}
{#--- Interface Forward Declarations -#}

Powered by Google App Engine
This is Rietveld 408576698