| OLD | NEW |
| 1 $$ This is a pump file for generating file templates. Pump is a python | 1 $$ This is a pump file for generating file templates. Pump is a python |
| 2 $$ script that is part of the Google Test suite of utilities. Description | 2 $$ script that is part of the Google Test suite of utilities. Description |
| 3 $$ can be found here: | 3 $$ can be found here: |
| 4 $$ | 4 $$ |
| 5 $$ http://code.google.com/p/googletest/wiki/PumpManual | 5 $$ http://code.google.com/p/googletest/wiki/PumpManual |
| 6 $$ | 6 $$ |
| 7 | 7 |
| 8 $$ See comment for MAX_ARITY in base/bind.h.pump. | 8 $$ See comment for MAX_ARITY in base/bind.h.pump. |
| 9 $var MAX_ARITY = 7 | 9 $var MAX_ARITY = 7 |
| 10 | 10 |
| 11 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 11 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 12 // Use of this source code is governed by a BSD-style license that can be | 12 // Use of this source code is governed by a BSD-style license that can be |
| 13 // found in the LICENSE file. | 13 // found in the LICENSE file. |
| 14 | 14 |
| 15 // Specializations of RunnableAdapter<> for Windows specific calling | 15 // Specializations of RunnableAdapter<> for Windows specific calling |
| 16 // conventions. Please see base/bind_internal.h for more info. | 16 // conventions. Please see base/bind_internal.h for more info. |
| 17 | 17 |
| 18 #ifndef BASE_BIND_INTERNAL_WIN_H_ | 18 #ifndef BASE_BIND_INTERNAL_WIN_H_ |
| 19 #define BASE_BIND_INTERNAL_WIN_H_ | 19 #define BASE_BIND_INTERNAL_WIN_H_ |
| 20 #pragma once | |
| 21 | 20 |
| 22 // In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all | 21 // In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all |
| 23 // the same as __cdecl which would turn the following specializations into | 22 // the same as __cdecl which would turn the following specializations into |
| 24 // multiple definitions. | 23 // multiple definitions. |
| 25 #if !defined(ARCH_CPU_X86_64) | 24 #if !defined(ARCH_CPU_X86_64) |
| 26 | 25 |
| 27 namespace base { | 26 namespace base { |
| 28 namespace internal { | 27 namespace internal { |
| 29 | 28 |
| 30 template <typename Functor> | 29 template <typename Functor> |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 }; | 72 }; |
| 74 | 73 |
| 75 ]] $$for ARITY | 74 ]] $$for ARITY |
| 76 | 75 |
| 77 } // namespace internal | 76 } // namespace internal |
| 78 } // namespace base | 77 } // namespace base |
| 79 | 78 |
| 80 #endif // !defined(ARCH_CPU_X86_64) | 79 #endif // !defined(ARCH_CPU_X86_64) |
| 81 | 80 |
| 82 #endif // BASE_BIND_INTERNAL_WIN_H_ | 81 #endif // BASE_BIND_INTERNAL_WIN_H_ |
| OLD | NEW |