Commit | Line | Data |
---|---|---|
e68f847b PG |
1 | /* |
2 | * Copyright (C) 2008 Patrik Gornicz, Gornicz_P (at) hotmail (dot) com. | |
3 | * | |
4 | * This program is free software: you can redistribute it and/or modify | |
5 | * it under the terms of the GNU General Public License as published by | |
6 | * the Free Software Foundation, either version 3 of the License, or | |
7 | * (at your option) any later version. | |
8 | * | |
9 | * This program is distributed in the hope that it will be useful, | |
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | * GNU General Public License for more details. | |
13 | * | |
14 | * You should have received a copy of the GNU General Public License | |
15 | * along with this program. If not, see <http://www.gnu.org/licenses/>. | |
16 | */ | |
17 | ||
f7b3b2eb PG |
18 | #ifndef DEBUG_H |
19 | #define DEBUG_H | |
20 | ||
ce53f20f PG |
21 | #include <iostream> |
22 | using std::cout; | |
23 | using std::cerr; | |
24 | using std::endl; | |
25 | ||
ca2d526e | 26 | void DPF(int level, const char* pstr); |
617dcc71 | 27 | |
2a02c4bb PG |
28 | namespace debug |
29 | { | |
30 | void init(); | |
31 | void clean(); | |
32 | } | |
33 | ||
8e89e1d3 PG |
34 | void DASSERT(bool fBreak); |
35 | ||
f7b3b2eb PG |
36 | // comment out when not debugging |
37 | #define DEBUGGING | |
38 | ||
3c3c195d | 39 | // comment out to suppress warnings |
54fe85c5 PG |
40 | #define WARNINGS |
41 | ||
7adc59fe | 42 | // comment out to prevent FPS and UPS printing |
ce53f20f | 43 | #define FPSUPS |
5f3520c8 PG |
44 | |
45 | ||
f7b3b2eb | 46 | #endif // DEBUG_H |