equal
deleted
inserted
replaced
1 /* $Id$ */ |
1 /* $Id$ */ |
|
2 |
|
3 /** @file debug.h */ |
2 |
4 |
3 #ifndef DEBUG_H |
5 #ifndef DEBUG_H |
4 #define DEBUG_H |
6 #define DEBUG_H |
5 |
7 |
6 /* Debugging messages policy: |
8 /* Debugging messages policy: |
89 #define OTTD_PRINTF64 "I64" |
91 #define OTTD_PRINTF64 "I64" |
90 #else |
92 #else |
91 #define OTTD_PRINTF64 "ll" |
93 #define OTTD_PRINTF64 "ll" |
92 #endif |
94 #endif |
93 |
95 |
94 // Used for profiling |
96 /* Used for profiling */ |
95 #define TIC() {\ |
97 #define TIC() {\ |
96 extern uint64 _rdtsc(void);\ |
98 extern uint64 _rdtsc(void);\ |
97 uint64 _xxx_ = _rdtsc();\ |
99 uint64 _xxx_ = _rdtsc();\ |
98 static uint64 __sum__ = 0;\ |
100 static uint64 __sum__ = 0;\ |
99 static uint32 __i__ = 0; |
101 static uint32 __i__ = 0; |