Lumiera  0.pre.03
»edit your freedom«
dummy-functions.hpp
Go to the documentation of this file.
1 /*
2  DUMMY-FUNCTIONS - mock functions for checking functor utils
3 
4  Copyright (C) Lumiera.org
5  2009, Hermann Vosseler <Ichthyostega@web.de>
6 
7  This program is free software; you can redistribute it and/or
8  modify it under the terms of the GNU General Public License as
9  published by the Free Software Foundation; either version 2 of
10  the License, or (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program; if not, write to the Free Software
19  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 
21 * *****************************************************/
22 
28 #ifndef LIB_META_DUMMY_FUNCTIONS_H
29 #define LIB_META_DUMMY_FUNCTIONS_H
30 
31 
32 
33 
34 namespace lib {
35 namespace meta {
36 namespace test {
37 
38 
39  namespace { // test helpers
40 
41  int _sum_ =0;
42 
43  void
44  testFunc (int i, char c)
45  {
46  _sum_ += i + c;
47  }
48 
49  int
50  returnIt ()
51  {
52  return _sum_;
53  }
54  }
55 
56 
57 
58 }}} // namespace lib::meta::test
59 #endif
Definition: run.hpp:49
Implementation namespace for support and library code.
int _sum_
used to verify the effect of testFunc