Gudhi  1.1.0
 All Classes Functions Typedefs Friends Groups Pages
Utils.h
1  /* This file is part of the Gudhi Library. The Gudhi library
2  * (Geometric Understanding in Higher Dimensions) is a generic C++
3  * library for computational topology.
4  *
5  * Author(s): David Salinas
6  *
7  * Copyright (C) 2014 INRIA Sophia Antipolis-Mediterranee (France)
8  *
9  * This program is free software: you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation, either version 3 of the License, or
12  * (at your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  * GNU General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program. If not, see <http://www.gnu.org/licenses/>.
21  */
22 #ifndef GUDHI_UTILS_H_
23 #define GUDHI_UTILS_H_
24 
25 
26 #define PRINT(a) std::cerr << #a << ": " << (a) << " (DISP)"<<std::endl
27 
28 //#define DBG_VERBOSE
29 #ifdef DBG_VERBOSE
30 #define DBG(a) std::cerr << "DBG: " << (a)<<std::endl
31 #define DBGMSG(a,b) std::cerr << "DBG: " << a<<b<<std::endl
32 #define DBGVALUE(a) std::cerr << "DBG: " << #a << ": " << a<<std::endl
33 #define DBGCONT(a) std::cerr << "DBG: container "<< #a<<" -> "; for(auto x:a) std::cerr<< x << ","; std::cerr<<std::endl
34 #else
35 //#define DBG(a) a
36 //#define DBGMSG(a,b) b
37 //#define DBGVALUE(a) a
38 //#define DBGCONT(a) a
39 #define DBG(a)
40 #define DBGMSG(a,b)
41 #define DBGVALUE(a)
42 #define DBGCONT(a)
43 #endif
44 
45 
46 
47 
48 #endif /* UTILS_H_ */