Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: base/bind_internal_win.h.pump

Issue 6463013: Add support for base::Closure in the MessageLoop. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/base
Patch Set: rebased Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « base/bind_internal_win.h ('k') | base/message_loop.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 $var MAX_ARITY = 6 8 $var MAX_ARITY = 6
9 9
10 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 10 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
11 // Use of this source code is governed by a BSD-style license that can be 11 // Use of this source code is governed by a BSD-style license that can be
12 // found in the LICENSE file. 12 // found in the LICENSE file.
13 13
14 // Specializations of FunctionTraits<> for Windows specific calling 14 // Specializations of FunctionTraits<> for Windows specific calling
15 // conventions. Please see base/bind_internal.h for more info. 15 // conventions. Please see base/bind_internal.h for more info.
16 16
17 #ifndef BASE_BIND_INTERNAL_WIN_H_ 17 #ifndef BASE_BIND_INTERNAL_WIN_H_
18 #define BASE_BIND_INTERNAL_WIN_H_ 18 #define BASE_BIND_INTERNAL_WIN_H_
19 #pragma once 19 #pragma once
20 20
21 // In the x64 architecture in Windows, __fastcall, __stdcall, etc, are all
22 // the same as __cdecl which would turn the following specializations into
23 // multiple definitions.
24 #if !defined(ARCH_CPU_X86_64)
25
21 namespace base { 26 namespace base {
22 namespace internal { 27 namespace internal {
23 28
24 template <typename Sig> 29 template <typename Sig>
25 struct FunctionTraits; 30 struct FunctionTraits;
26 31
27 $range ARITY 0..MAX_ARITY 32 $range ARITY 0..MAX_ARITY
28 $for ARITY [[ 33 $for ARITY [[
29 $range ARG 1..ARITY 34 $range ARG 1..ARITY
30 35
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 67
63 ]] $$ for ARG 68 ]] $$ for ARG
64 ]] $$ if ARITY > 0 69 ]] $$ if ARITY > 0
65 }; 70 };
66 71
67 ]] $$for ARITY 72 ]] $$for ARITY
68 73
69 } // namespace internal 74 } // namespace internal
70 } // namespace base 75 } // namespace base
71 76
77 #endif // !defined(ARCH_CPU_X86_64)
78
72 #endif // BASE_BIND_INTERNAL_WIN_H_ 79 #endif // BASE_BIND_INTERNAL_WIN_H_
OLDNEW
« no previous file with comments | « base/bind_internal_win.h ('k') | base/message_loop.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698