| Index: Source/core/scripts/templates/macros.tmpl
|
| diff --git a/Source/wtf/text/StringStatics.h b/Source/core/scripts/templates/macros.tmpl
|
| similarity index 85%
|
| copy from Source/wtf/text/StringStatics.h
|
| copy to Source/core/scripts/templates/macros.tmpl
|
| index 73097bc5cdbaf2e17318bd93cdcb1c445f676b27..ce927432acafb4c70af3b7bba98f1ca814e144c3 100644
|
| --- a/Source/wtf/text/StringStatics.h
|
| +++ b/Source/core/scripts/templates/macros.tmpl
|
| @@ -1,3 +1,17 @@
|
| +{% macro wrap_with_condition(condition) %}
|
| +{%- if condition %}
|
| +#if ENABLE({{condition}})
|
| +{{- caller() }}
|
| +#endif
|
| +{%- else %}
|
| +{{- caller() }}
|
| +{%- endif %}
|
| +{%- endmacro %}
|
| +
|
| +{#
|
| + FIXME: Do we need to put license blocks in generated files?
|
| +#}
|
| +{% macro license() -%}
|
| /*
|
| * Copyright (C) 2013 Google Inc. All rights reserved.
|
| *
|
| @@ -27,20 +41,4 @@
|
| * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
| */
|
| -
|
| -#ifndef StringStatics_h
|
| -#define StringStatics_h
|
| -
|
| -namespace WTF {
|
| -
|
| -class StringStatics {
|
| -public:
|
| - static void init();
|
| -
|
| -private:
|
| - StringStatics();
|
| -};
|
| -
|
| -}
|
| -
|
| -#endif
|
| +{%- endmacro %}
|
|
|