OLD | NEW |
---|---|
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #if defined(__clang__) | 5 #if defined(__clang__) |
6 #pragma clang diagnostic push | 6 #pragma clang diagnostic push |
7 #pragma clang diagnostic ignored "-Wunused-private-field" | 7 #pragma clang diagnostic ignored "-Wunused-private-field" |
8 #endif | 8 #endif |
9 | 9 |
10 #include "{{module.path}}.h" | 10 #include "{{module.path}}.h" |
11 | 11 |
12 #include <assert.h> | |
darin (slow to review)
2014/05/15 05:47:29
Is this needed?
yzshen1
2014/05/15 07:45:31
Removed.
(I am not very clear to what extent we fo
| |
13 | |
12 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" | 14 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" |
13 #include "mojo/public/cpp/bindings/lib/message_builder.h" | 15 #include "mojo/public/cpp/bindings/lib/message_builder.h" |
14 | 16 |
15 {%- for namespace in namespaces_as_array %} | 17 {%- for namespace in namespaces_as_array %} |
16 namespace {{namespace}} { | 18 namespace {{namespace}} { |
17 {%- endfor %} | 19 {%- endfor %} |
18 namespace internal { | 20 namespace internal { |
19 namespace { | 21 namespace { |
20 | 22 |
21 #pragma pack(push, 1) | 23 #pragma pack(push, 1) |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
59 {%- for interface in interfaces %} | 61 {%- for interface in interfaces %} |
60 {%- include "interface_definition.tmpl" %} | 62 {%- include "interface_definition.tmpl" %} |
61 {%- endfor %} | 63 {%- endfor %} |
62 {%- for namespace in namespaces_as_array|reverse %} | 64 {%- for namespace in namespaces_as_array|reverse %} |
63 } // namespace {{namespace}} | 65 } // namespace {{namespace}} |
64 {%- endfor %} | 66 {%- endfor %} |
65 | 67 |
66 #if defined(__clang__) | 68 #if defined(__clang__) |
67 #pragma clang diagnostic pop | 69 #pragma clang diagnostic pop |
68 #endif | 70 #endif |
OLD | NEW |