Index: trunk/src/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl |
=================================================================== |
--- trunk/src/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl (revision 279687) |
+++ trunk/src/mojo/public/tools/bindings/generators/java_templates/constant_definition.tmpl (working copy) |
@@ -1,3 +1,5 @@ |
+{% from "java_macros.tmpl" import build_default %} |
+ |
{% macro constant_def(constant) %} |
-public static final {{constant.kind|java_type}} {{constant|name}} = ({{constant.kind|java_type}}) {{constant.value|expression_to_text}}; |
+public static final {{constant.kind|java_type}} {{constant|name}} = {{build_default(module, constant.kind, constant.value)|indent(4)}}; |
{% endmacro %} |