Points&Forces (core)
Software tools facilitating the task of surveying architecture
include
a_debug.h
Go to the documentation of this file.
1
/*
2
Copyright 2010-2011 Pierre SMARS (smars@yuntech.edu.tw)
3
This program is free software: you can redistribute it and/or modify
4
it under the terms of the GNU General Public License as published by
5
the Free Software Foundation, either version 2 of the License, or
6
(at your option) any later version.
7
8
This program is distributed in the hope that it will be useful,
9
but WITHOUT ANY WARRANTY; without even the implied warranty of
10
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
GNU General Public License for more details.
12
13
You should have received a copy of the GNU General Public License
14
along with this program. If not, see <http://www.gnu.org/licenses/>.
15
*/
16
#ifndef _VE_DEBUG_H_
17
#define _VE_DEBUG_H_
18
19
//#include <sys/times.h>
20
#include <ctime>
21
22
/*
23
#if DEBUG == 1
24
#define VE(x) std::cerr << #x << ": " << x << std::endl;
25
#define VL(x) std::cerr << #x << ": " << x << " ";
26
#define CE(x) std::cerr << #x << std::endl;
27
#define CL(x) std::cerr << #x << " ";
28
#define IE static int qwerty = 0; qwerty++; std::cerr << "{" << qwerty << "}" << std::endl;
29
#define IL static int qwerty = 0; qwerty++; std::cerr << "{" << qwerty << "} ";
30
#define TI std::cerr << "user time: " << (double)clock()/CLOCKS_PER_SEC << std::endl;
31
#else
32
#define VE(x)
33
#define VL(x)
34
#define CE(x)
35
#define CL(x)
36
#define IE
37
#define IL
38
#define TI
39
#endif
40
*/
41
42
#define VE(x) std::cerr << #x << ": "
<< x << std::endl;
43
#define VL(x) std::cerr << #x << ": "
<< x << " ";
44
#define CE(x) std::cerr << #x << std::endl;
45
#define CL(x) std::cerr << #x << " "
;
46
#define IE static int qwerty = 0; qwerty++; std::cerr << "{"
<< qwerty << "}" << std::endl;
47
#define IL static int qwerty = 0; qwerty++; std::cerr << "{"
<< qwerty << "} ";
48
#define TI std::cerr << "user time: "
<< (double)clock()/CLOCKS_PER_SEC << std::endl;
49
50
#endif
Generated on Tue Sep 6 2022 18:50:16 for Points&Forces (core) by
1.9.1