| Index: Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| diff --git a/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl b/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| index 8cd44d1b5d57ceff021002e26de03163dfa59a31..4e6b909074576c4a87bf50fe12556e98932af699 100644
|
| --- a/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| +++ b/Source/build/scripts/templates/InternalRuntimeFlags.h.tmpl
|
| @@ -1,4 +1,4 @@
|
| -{% from "macros.tmpl" import wrap_with_condition, license -%}
|
| +{% from "macros.tmpl" import wrap_with_condition, license %}
|
| {{ license() }}
|
|
|
| #ifndef InternalRuntimeFlags_h
|
| @@ -19,17 +19,19 @@ public:
|
| return adoptRefWillBeNoop(new InternalRuntimeFlags);
|
| }
|
|
|
| -{#-
|
| +{#
|
| Setting after startup does not work for most runtime flags, but we
|
| could add an option to print setters for ones which do:
|
| void set{{feature.name}}Enabled(bool isEnabled) { RuntimeEnabledFeatures::set{{feature.name}}Enabled(isEnabled); }
|
| If we do that, we also need to respect Internals::resetToConsistentState.
|
| #}
|
| -{% for feature in features if not feature.custom %}
|
| -{%- call wrap_with_condition(feature.condition) %}
|
| + {% for feature in features if not feature.custom %}
|
| + {% call wrap_with_condition(feature.condition) %}
|
| bool {{feature.first_lowered_name}}Enabled() { return RuntimeEnabledFeatures::{{feature.first_lowered_name}}Enabled(); }
|
| -{%- endcall %}
|
| -{% endfor %}
|
| + {% endcall %}
|
| + {# FIXME: remove extra blank line #}
|
| +
|
| + {% endfor %}
|
|
|
| void trace(Visitor*) { }
|
|
|
|
|