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 #ifndef MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ | 5 #ifndef MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ |
6 #define MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ | 6 #define MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ |
7 | 7 |
8 #include <assert.h> | |
viettrungluu
2014/07/15 00:44:09
Why this include?
| |
9 | |
8 #include "mojo/public/c/system/macros.h" | 10 #include "mojo/public/c/system/macros.h" |
11 #include "mojo/public/c/system/system_export.h" | |
viettrungluu
2014/07/15 00:44:09
And this?
Hajime Morrita
2014/07/15 17:38:15
Moved these to their clients based on the IWYU pol
| |
9 | 12 |
10 // Annotate a virtual method indicating it must be overriding a virtual method | 13 // Annotate a virtual method indicating it must be overriding a virtual method |
11 // in the parent class. Use like: | 14 // in the parent class. Use like: |
12 // virtual void foo() OVERRIDE; | 15 // virtual void foo() OVERRIDE; |
13 #if defined(_MSC_VER) || defined(__clang__) | 16 #if defined(_MSC_VER) || defined(__clang__) |
14 #define MOJO_OVERRIDE override | 17 #define MOJO_OVERRIDE override |
15 #else | 18 #else |
16 #define MOJO_OVERRIDE | 19 #define MOJO_OVERRIDE |
17 #endif | 20 #endif |
18 | 21 |
(...skipping 25 matching lines...) Expand all Loading... | |
44 }; \ | 47 }; \ |
45 type(type&); \ | 48 type(type&); \ |
46 void operator=(type&); \ | 49 void operator=(type&); \ |
47 public: \ | 50 public: \ |
48 operator rvalue_type() { return rvalue_type(this); } \ | 51 operator rvalue_type() { return rvalue_type(this); } \ |
49 type Pass() { return type(rvalue_type(this)); } \ | 52 type Pass() { return type(rvalue_type(this)); } \ |
50 typedef void MoveOnlyTypeForCPP03; \ | 53 typedef void MoveOnlyTypeForCPP03; \ |
51 private: | 54 private: |
52 | 55 |
53 #endif // MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ | 56 #endif // MOJO_PUBLIC_CPP_SYSTEM_MACROS_H_ |
OLD | NEW |