Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(244)

Side by Side Diff: mojo/public/tools/bindings/generators/cpp_templates/module.cc.tmpl

Issue 474063002: Mojo: add support for {double,float}.{INFINITY,NEGATIVE_INFINITY,NAN} (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: another windows fix Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #elif defined(_MSC_VER)
9 #pragma warning(push)
10 #pragma warning(disable:4056)
11 #pragma warning(disable:4756)
8 #endif 12 #endif
9 13
10 #include "{{module.path}}.h" 14 #include "{{module.path}}.h"
11 15
16 #include <math.h>
17
12 #include "mojo/public/cpp/bindings/lib/array_serialization.h" 18 #include "mojo/public/cpp/bindings/lib/array_serialization.h"
13 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h" 19 #include "mojo/public/cpp/bindings/lib/bindings_serialization.h"
14 #include "mojo/public/cpp/bindings/lib/bounds_checker.h" 20 #include "mojo/public/cpp/bindings/lib/bounds_checker.h"
15 #include "mojo/public/cpp/bindings/lib/message_builder.h" 21 #include "mojo/public/cpp/bindings/lib/message_builder.h"
16 #include "mojo/public/cpp/bindings/lib/string_serialization.h" 22 #include "mojo/public/cpp/bindings/lib/string_serialization.h"
17 #include "mojo/public/cpp/bindings/lib/validation_errors.h" 23 #include "mojo/public/cpp/bindings/lib/validation_errors.h"
18 24
19 {%- for namespace in namespaces_as_array %} 25 {%- for namespace in namespaces_as_array %}
20 namespace {{namespace}} { 26 namespace {{namespace}} {
21 {%- endfor %} 27 {%- endfor %}
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 {%- for struct in structs %} 82 {%- for struct in structs %}
77 {%- include "struct_serialization_definition.tmpl" %} 83 {%- include "struct_serialization_definition.tmpl" %}
78 {%- endfor %} 84 {%- endfor %}
79 85
80 {%- for namespace in namespaces_as_array|reverse %} 86 {%- for namespace in namespaces_as_array|reverse %}
81 } // namespace {{namespace}} 87 } // namespace {{namespace}}
82 {%- endfor %} 88 {%- endfor %}
83 89
84 #if defined(__clang__) 90 #if defined(__clang__)
85 #pragma clang diagnostic pop 91 #pragma clang diagnostic pop
92 #elif defined(_MSC_VER)
93 #pragma warning(pop)
86 #endif 94 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698