Chromium Code Reviews| Index: Source/bindings/templates/conversions.cpp |
| diff --git a/Source/bindings/templates/conversions.cpp b/Source/bindings/templates/conversions.cpp |
| index cb48705d6c57b8ea7919d39c604f3986987ec2f3..98e48d9e7db706922197caddc43ed9cf6e217e77 100644 |
| --- a/Source/bindings/templates/conversions.cpp |
| +++ b/Source/bindings/templates/conversions.cpp |
| @@ -29,3 +29,12 @@ if ({{item.check_expression}}) |
| {% endif %}{# item.check_expression #} |
| {% endif %}{# item.error_message #} |
| {% endmacro %} |
| + |
| + |
| +{% macro declare_enum_validation_variable(enum_values) %} |
| +const char* validValues[] = { |
|
haraken
2015/03/31 06:11:16
Add static?
bashi
2015/04/01 00:17:31
Done.
|
| +{% for enum_value in enum_values %} |
| + "{{enum_value}}", |
| +{% endfor %} |
| +}; |
| +{%-endmacro %} |