Index: Source/bindings/templates/constants.cpp |
diff --git a/Source/bindings/templates/constants.cpp b/Source/bindings/templates/constants.cpp |
index b88c373a8e0f2b0b03028df38dce0a9f5aa47d4e..67054067b40ff65eccfe5c417751321e03077d64 100644 |
--- a/Source/bindings/templates/constants.cpp |
+++ b/Source/bindings/templates/constants.cpp |
@@ -60,12 +60,12 @@ static_assert({{constant.value}} == {{constant_cpp_class}}::{{constant.reflected |
{######################################} |
{%- macro constant_configuration(constant) %} |
{% if constant.idl_type in ('Double', 'Float') %} |
- {% set value = '0, %s, 0' % constant.value %} |
+ {% set value = '%sf' % constant.value %} |
{% elif constant.idl_type == 'String' %} |
- {% set value = '0, 0, "%s"' % constant.value %} |
+ {% set value = '"%s"' % constant.value %} |
{% else %} |
{# 'Short', 'Long' etc. #} |
- {% set value = '%s, 0, 0' % constant.value %} |
+ {% set value = '%s' % constant.value %} |
{% endif %} |
{"{{constant.name}}", {{value}}, V8DOMConfiguration::ConstantType{{constant.idl_type}}} |
{%- endmacro %} |