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

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

Issue 8728010: Increase Bind/Callback Arity from 6 -> 7. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated comments. Created 9 years 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
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 // TODO(ajwong): If you create an fully unbound method, is there a way to 8 $$ See comment for MAX_ARITY in base/bind.h.pump.
9 // enforce the first argument must be refcounted? Or do we just say 9 $var MAX_ARITY = 7
10 // "oh well"?
11 //
12 // Do we want to allow creating a fully unbound method??
13
14 $var MAX_ARITY = 6
15 $range ARITY 0..MAX_ARITY 10 $range ARITY 0..MAX_ARITY
16 11
17 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 12 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
18 // Use of this source code is governed by a BSD-style license that can be 13 // Use of this source code is governed by a BSD-style license that can be
19 // found in the LICENSE file. 14 // found in the LICENSE file.
20 15
21 #ifndef BASE_BIND_INTERNAL_H_ 16 #ifndef BASE_BIND_INTERNAL_H_
22 #define BASE_BIND_INTERNAL_H_ 17 #define BASE_BIND_INTERNAL_H_
23 #pragma once 18 #pragma once
24 19
(...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 486
492 ]] 487 ]]
493 }; 488 };
494 489
495 ]] $$ for ARITY 490 ]] $$ for ARITY
496 491
497 } // namespace internal 492 } // namespace internal
498 } // namespace base 493 } // namespace base
499 494
500 #endif // BASE_BIND_INTERNAL_H_ 495 #endif // BASE_BIND_INTERNAL_H_
OLDNEW
« base/bind_internal.h ('K') | « base/bind_internal.h ('k') | base/bind_internal_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698