| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 LIBRARIES_SDK_UTIL_MACROS_H_ | 5 #ifndef LIBRARIES_SDK_UTIL_MACROS_H_ |
| 6 #define LIBRARIES_SDK_UTIL_MACROS_H_ | 6 #define LIBRARIES_SDK_UTIL_MACROS_H_ |
| 7 | 7 |
| 8 /** | 8 /** |
| 9 * A macro to disallow the evil copy constructor and operator= functions | 9 * A macro to disallow the evil copy constructor and operator= functions |
| 10 * This should be used in the private: declarations for a class. | 10 * This should be used in the private: declarations for a class. |
| 11 */ | 11 */ |
| 12 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ | 12 #define DISALLOW_COPY_AND_ASSIGN(TypeName) \ |
| 13 TypeName(const TypeName&); \ | 13 TypeName(const TypeName&); \ |
| 14 void operator=(const TypeName&) | 14 void operator=(const TypeName&) |
| (...skipping 25 matching lines...) Expand all Loading... |
| 40 * | 40 * |
| 41 */ | 41 */ |
| 42 #define FORCE_LINK_THIS(x) int force_link_##x = 0; | 42 #define FORCE_LINK_THIS(x) int force_link_##x = 0; |
| 43 #define FORCE_LINK_THAT(x) \ | 43 #define FORCE_LINK_THAT(x) \ |
| 44 void force_link_function_##x() { \ | 44 void force_link_function_##x() { \ |
| 45 extern int force_link_##x; \ | 45 extern int force_link_##x; \ |
| 46 force_link_##x = 1; \ | 46 force_link_##x = 1; \ |
| 47 } | 47 } |
| 48 | 48 |
| 49 #endif /* LIBRARIES_SDK_UTIL_MACROS_H_ */ | 49 #endif /* LIBRARIES_SDK_UTIL_MACROS_H_ */ |
| 50 | |
| OLD | NEW |