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

Side by Side Diff: mojo/public/cpp/system/macros.h

Issue 1543603002: Switch to standard integer types in mojo/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 4 years, 12 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
« no previous file with comments | « mojo/public/cpp/system/handle.h ('k') | mojo/public/cpp/system/message_pipe.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // Define a set of C++ specific macros. 5 // Define a set of C++ specific macros.
6 // Mojo C++ API users can assume that mojo/public/cpp/system/macros.h 6 // Mojo C++ API users can assume that mojo/public/cpp/system/macros.h
7 // includes mojo/public/c/system/macros.h. 7 // includes mojo/public/c/system/macros.h.
8 8
9 #ifndef MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ 9 #ifndef MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_
10 #define MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ 10 #define MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_
11 11
12 #include <stddef.h>
13
12 #include "mojo/public/c/system/macros.h" // Symbols exposed. 14 #include "mojo/public/c/system/macros.h" // Symbols exposed.
13 15
14 // A macro to disallow the copy constructor and operator= functions. 16 // A macro to disallow the copy constructor and operator= functions.
15 #define MOJO_DISALLOW_COPY_AND_ASSIGN(TypeName) \ 17 #define MOJO_DISALLOW_COPY_AND_ASSIGN(TypeName) \
16 TypeName(const TypeName&) = delete; \ 18 TypeName(const TypeName&) = delete; \
17 void operator=(const TypeName&) = delete 19 void operator=(const TypeName&) = delete
18 20
19 // Used to calculate the number of elements in an array. 21 // Used to calculate the number of elements in an array.
20 // (See |arraysize()| in Chromium's base/macros.h for more details.) 22 // (See |arraysize()| in Chromium's base/macros.h for more details.)
21 namespace mojo { 23 namespace mojo {
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // Used to explicitly mark the return value of a function as unused. (You this 74 // Used to explicitly mark the return value of a function as unused. (You this
73 // if you are really sure you don't want to do anything with the return value of 75 // if you are really sure you don't want to do anything with the return value of
74 // a function marked with |MOJO_WARN_UNUSED_RESULT|. 76 // a function marked with |MOJO_WARN_UNUSED_RESULT|.
75 template <typename T> 77 template <typename T>
76 inline void ignore_result(const T&) { 78 inline void ignore_result(const T&) {
77 } 79 }
78 80
79 } // namespace mojo 81 } // namespace mojo
80 82
81 #endif // MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ 83 #endif // MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_
OLDNEW
« no previous file with comments | « mojo/public/cpp/system/handle.h ('k') | mojo/public/cpp/system/message_pipe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698