OLD | NEW |
1 {% from "macros.tmpl" import license -%} | 1 {% from "macros.tmpl" import license %} |
2 {{ license() }} | 2 {{ license() }} |
3 | 3 |
4 #ifndef {{namespace}}Names_h | 4 #ifndef {{namespace}}Names_h |
5 #define {{namespace}}Names_h | 5 #define {{namespace}}Names_h |
6 | 6 {# FIXME: add blank line #} |
7 {%- if export %} | 7 {% if export %} |
8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
9 {%- endif %} | 9 {% endif %} |
10 #include "wtf/text/AtomicString.h" | 10 #include "wtf/text/AtomicString.h" |
11 | 11 |
12 namespace WebCore { | 12 namespace WebCore { |
13 namespace {{namespace}}Names { | 13 namespace {{namespace}}Names { |
14 | 14 |
15 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS | 15 #ifndef {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS |
16 | 16 {# FIXME: add blank line #} |
17 {%- for entry in entries|sort %} | 17 {% for entry in entries|sort %} |
18 {%- if export %} | 18 {% if export %} |
19 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; | 19 {{export}} extern const WTF::AtomicString& {{entry|symbol}}; |
20 {%- else %} | 20 {% else %} |
21 extern const WTF::AtomicString {{entry|symbol}}; | 21 extern const WTF::AtomicString {{entry|symbol}}; |
22 {%- endif %} | 22 {% endif %} |
23 {%- endfor %} | 23 {% endfor %} |
24 | 24 |
25 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS | 25 #endif // {{namespace|to_macro_style}}_NAMES_HIDE_GLOBALS |
26 | 26 |
27 {{export}} void init(); | 27 {{export}} void init(); |
28 | 28 |
29 } // {{namespace}}Names | 29 } // {{namespace}}Names |
30 } // WebCore | 30 } // WebCore |
31 | 31 |
32 #endif | 32 #endif |
OLD | NEW |