| OLD | NEW |
| 1 // This file was GENERATED by command: | 1 // This file was GENERATED by command: |
| 2 // pump.py bind_internal_win.h.pump | 2 // pump.py bind_internal_win.h.pump |
| 3 // DO NOT EDIT BY HAND!!! | 3 // DO NOT EDIT BY HAND!!! |
| 4 | 4 |
| 5 | 5 |
| 6 |
| 6 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 7 // Use of this source code is governed by a BSD-style license that can be | 8 // Use of this source code is governed by a BSD-style license that can be |
| 8 // found in the LICENSE file. | 9 // found in the LICENSE file. |
| 9 | 10 |
| 10 // Specializations of FunctionTraits<> for Windows specific calling | 11 // Specializations of FunctionTraits<> for Windows specific calling |
| 11 // conventions. Please see base/bind_internal.h for more info. | 12 // conventions. Please see base/bind_internal.h for more info. |
| 12 | 13 |
| 13 #ifndef BASE_BIND_INTERNAL_WIN_H_ | 14 #ifndef BASE_BIND_INTERNAL_WIN_H_ |
| 14 #define BASE_BIND_INTERNAL_WIN_H_ | 15 #define BASE_BIND_INTERNAL_WIN_H_ |
| 15 #pragma once | 16 #pragma once |
| 16 | 17 |
| 18 // In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all |
| 19 // the same as __cdecl which would turn the following specializations into |
| 20 // multiple definitions. |
| 21 #if !defined(ARCH_CPU_X86_64) |
| 22 |
| 17 namespace base { | 23 namespace base { |
| 18 namespace internal { | 24 namespace internal { |
| 19 | 25 |
| 20 template <typename Sig> | 26 template <typename Sig> |
| 21 struct FunctionTraits; | 27 struct FunctionTraits; |
| 22 | 28 |
| 23 // __stdcall Function: Arity 0. | 29 // __stdcall Function: Arity 0. |
| 24 template <typename R> | 30 template <typename R> |
| 25 struct FunctionTraits<R(__stdcall *)()> { | 31 struct FunctionTraits<R(__stdcall *)()> { |
| 26 typedef R (*NormalizedSig)(); | 32 typedef R (*NormalizedSig)(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 template <typename R, typename X1, typename X2, typename X3, typename X4, | 124 template <typename R, typename X1, typename X2, typename X3, typename X4, |
| 119 typename X5, typename X6> | 125 typename X5, typename X6> |
| 120 struct FunctionTraits<R(__fastcall *)(X1, X2, X3, X4, X5, X6)> { | 126 struct FunctionTraits<R(__fastcall *)(X1, X2, X3, X4, X5, X6)> { |
| 121 typedef R (*NormalizedSig)(X1, X2, X3, X4, X5, X6); | 127 typedef R (*NormalizedSig)(X1, X2, X3, X4, X5, X6); |
| 122 typedef false_type IsMethod; | 128 typedef false_type IsMethod; |
| 123 }; | 129 }; |
| 124 | 130 |
| 125 } // namespace internal | 131 } // namespace internal |
| 126 } // namespace base | 132 } // namespace base |
| 127 | 133 |
| 134 #endif // !defined(ARCH_CPU_X86_64) |
| 135 |
| 128 #endif // BASE_BIND_INTERNAL_WIN_H_ | 136 #endif // BASE_BIND_INTERNAL_WIN_H_ |
| OLD | NEW |