| OLD | NEW |
| 1 /* Copyright (c) 2011 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 | 5 |
| 6 /* From pp_macros.idl modified Thu Dec 8 23:25:05 2011. */ | 6 /* From pp_macros.idl modified Wed Aug 15 17:29:43 2012. */ |
| 7 | 7 |
| 8 #ifndef PPAPI_C_PP_MACROS_H_ | 8 #ifndef PPAPI_C_PP_MACROS_H_ |
| 9 #define PPAPI_C_PP_MACROS_H_ | 9 #define PPAPI_C_PP_MACROS_H_ |
| 10 | 10 |
| 11 | 11 |
| 12 /** | 12 /** |
| 13 * @file | 13 * @file |
| 14 * Defines the API ... | 14 * Defines the API ... |
| 15 */ | 15 */ |
| 16 | 16 |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 */ | 92 */ |
| 93 #define PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(NAME, SIZE) \ | 93 #define PP_COMPILE_ASSERT_ENUM_SIZE_IN_BYTES(NAME, SIZE) \ |
| 94 PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, enum NAME, SIZE) | 94 PP_COMPILE_ASSERT_SIZE_IN_BYTES_IMPL(NAME, enum NAME, SIZE) |
| 95 | 95 |
| 96 /* This is roughly copied from base/compiler_specific.h, and makes it possible | 96 /* This is roughly copied from base/compiler_specific.h, and makes it possible |
| 97 to pass 'this' in a constructor initializer list, when you really mean it. | 97 to pass 'this' in a constructor initializer list, when you really mean it. |
| 98 E.g.: | 98 E.g.: |
| 99 Foo::Foo(MyInstance* instance) | 99 Foo::Foo(MyInstance* instance) |
| 100 : PP_ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) {} | 100 : PP_ALLOW_THIS_IN_INITIALIZER_LIST(callback_factory_(this)) {} |
| 101 */ | 101 */ |
| 102 #if defined(COMPILER_MSVC) | 102 #if defined(_MSC_VER) |
| 103 # define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) \ | 103 # define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) \ |
| 104 __pragma(warning(push)) \ | 104 __pragma(warning(push)) \ |
| 105 __pragma(warning(disable:4355)) \ | 105 __pragma(warning(disable:4355)) \ |
| 106 code \ | 106 code \ |
| 107 __pragma(warning(pop)) | 107 __pragma(warning(pop)) |
| 108 #else | 108 #else |
| 109 # define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) code | 109 # define PP_ALLOW_THIS_IN_INITIALIZER_LIST(code) code |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 /** | 112 /** |
| 113 * @} | 113 * @} |
| 114 * End of addtogroup PP | 114 * End of addtogroup PP |
| 115 */ | 115 */ |
| 116 | 116 |
| 117 #endif /* PPAPI_C_PP_MACROS_H_ */ | 117 #endif /* PPAPI_C_PP_MACROS_H_ */ |
| 118 | 118 |
| OLD | NEW |