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 |
7 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 7 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
8 // 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 |
9 // found in the LICENSE file. | 9 // found in the LICENSE file. |
10 | 10 |
11 // Specializations of FunctionTraits<> for Windows specific calling | 11 // Specializations of FunctionTraits<> for Windows specific calling |
12 // conventions. Please see base/bind_internal.h for more info. | 12 // conventions. Please see base/bind_internal.h for more info. |
13 | 13 |
14 #ifndef BASE_BIND_INTERNAL_WIN_H_ | 14 #ifndef BASE_BIND_INTERNAL_WIN_H_ |
15 #define BASE_BIND_INTERNAL_WIN_H_ | 15 #define BASE_BIND_INTERNAL_WIN_H_ |
16 #pragma once | 16 #pragma once |
17 | 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 |
18 namespace base { | 23 namespace base { |
19 namespace internal { | 24 namespace internal { |
20 | 25 |
21 template <typename Sig> | 26 template <typename Sig> |
22 struct FunctionTraits; | 27 struct FunctionTraits; |
23 | 28 |
24 // __stdcall Function: Arity 0. | 29 // __stdcall Function: Arity 0. |
25 template <typename R> | 30 template <typename R> |
26 struct FunctionTraits<R(__stdcall *)()> { | 31 struct FunctionTraits<R(__stdcall *)()> { |
27 typedef R (*NormalizedSig)(); | 32 typedef R (*NormalizedSig)(); |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 typedef X2 B2; | 178 typedef X2 B2; |
174 typedef X3 B3; | 179 typedef X3 B3; |
175 typedef X4 B4; | 180 typedef X4 B4; |
176 typedef X5 B5; | 181 typedef X5 B5; |
177 typedef X6 B6; | 182 typedef X6 B6; |
178 }; | 183 }; |
179 | 184 |
180 } // namespace internal | 185 } // namespace internal |
181 } // namespace base | 186 } // namespace base |
182 | 187 |
| 188 #endif // !defined(ARCH_CPU_X86_64) |
| 189 |
183 #endif // BASE_BIND_INTERNAL_WIN_H_ | 190 #endif // BASE_BIND_INTERNAL_WIN_H_ |
OLD | NEW |