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 $var MAX_ARITY = 6 | 8 $var MAX_ARITY = 7 |
willchan no longer on Chromium
2011/11/28 20:02:49
It'd be great to add a comment explaining the pros
| |
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 #ifndef BASE_BIND_H_ | 14 #ifndef BASE_BIND_H_ |
15 #define BASE_BIND_H_ | 15 #define BASE_BIND_H_ |
16 #pragma once | 16 #pragma once |
17 | 17 |
18 #include "base/bind_internal.h" | 18 #include "base/bind_internal.h" |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 void($for ARG , [[typename internal::CallbackParamTraits<P$(ARG)>::StorageType]] )>( | 113 void($for ARG , [[typename internal::CallbackParamTraits<P$(ARG)>::StorageType]] )>( |
114 internal::MakeRunnable(functor)[[]] | 114 internal::MakeRunnable(functor)[[]] |
115 $if ARITY > 0 [[, ]] $for ARG , [[p$(ARG)]])); | 115 $if ARITY > 0 [[, ]] $for ARG , [[p$(ARG)]])); |
116 } | 116 } |
117 | 117 |
118 ]] $$ for ARITY | 118 ]] $$ for ARITY |
119 | 119 |
120 } // namespace base | 120 } // namespace base |
121 | 121 |
122 #endif // BASE_BIND_H_ | 122 #endif // BASE_BIND_H_ |
OLD | NEW |