Urbanisme  1.3.0
Projet visant à l'optimisation du placement de routes sur une surface. https://flodavid.github.io/Urbanisme
debug.h
1 #pragma once
2 
3 //#define NDEBUG 1 // pour enlever les assert()
4 
5 // For all debugs ; be careful, many text
6 #define DEBUG_ALL 0
7 
8 // Generic debug
9 #define DEBUG 0
10 
11 // Resolution
12 #define DEBUG_EVALUATION_LIGHT 0
13 #define DEBUG_EVALUATION 0
14 #define DEBUG_PARCOURS_COORDS 0
15 #define DEBUG_ROADS_DIST 0
16 #define DEBUG_ADD_USABLE_ROAD 0
17 #define DEBUG_ADD_ACCESS_ROAD 0
18 #define DEBUG_ADD_ACCESS_GAIN 0
19 #define DEBUG_HOTMAP 0
20 
21 #define LOGS_GENERAL 1
22 #define LOGS_ACCESS_ROAD 1
23 #define LOGS_PARETO 1
24 
25 /* define all debug if DEBUG_ALL defined to 1 */
26 #if DEBUG_ALL or NDEBUG
27  #undef DEBUG
28  #undef DEBUG_EVALUATION_LIGHT
29  #undef DEBUG_EVALUATION
30  #undef DEBUG_PARCOURS_COORDS
31  #undef DEBUG_ROADS_DIST
32  #undef DEBUG_ADD_USABLE_ROAD
33  #undef DEBUG_ADD_ACCESS_ROAD
34  #undef DEBUG_ADD_ACCESS_GAIN
35  #undef DEBUG_HOTMAP
36 #endif
37 
38 #if DEBUG_ALL
39  #define DEBUG 1
40  #define DEBUG_EVALUATION_LIGHT 1
41  #define DEBUG_EVALUATION 1
42  #define DEBUG_PARCOURS_COORDS 1
43  #define DEBUG_ROADS_DIST 1
44  #define DEBUG_ADD_USABLE_ROAD 1
45  #define DEBUG_ADD_ACCESS_ROAD 1
46  #define DEBUG_ADD_ACCESS_GAIN 1
47  #define DEBUG_HOTMAP 1
48 #endif
49 
50 #ifdef NDEBUG
51  #define DEBUG 0
52  #define DEBUG_EVALUATION_LIGHT 0
53  #define DEBUG_EVALUATION 0
54  #define DEBUG_PARCOURS_COORDS 0
55  #define DEBUG_ROADS_DIST 0
56  #define DEBUG_ADD_USABLE_ROAD 0
57  #define DEBUG_ADD_ACCESS_ROAD 0
58  #define DEBUG_ADD_ACCESS_GAIN 0
59  #define DEBUG_HOTMAP 0
60 #endif
61