/[zanavi_public1]/navit/navit/debug.h
ZANavi

Diff of /navit/navit/debug.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 50 Revision 51
151#define dbg(level,...) #level 151#define dbg(level,...) #level
152#define dbg_func(level,indent,...) #level 152#define dbg_func(level,indent,...) #level
153#define dbg_assert(expr) ((expr) ? (void) 0 : (void) 0) 153#define dbg_assert(expr) ((expr) ? (void) 0 : (void) 0)
154 154
155#endif 155#endif
156
157
158// #define _CIDEBUG_BUILD_ 1
159
160
161#ifdef _CIDEBUG_BUILD_
162#define tests_dbg(level,...) debug_for_tests_printf(level,__VA_ARGS__);
163#else
164#define tests_dbg(level,...) #level
165#endif
166
156 167
157 168
158 169
159//#ifdef DEBUG_MALLOC 170//#ifdef DEBUG_MALLOC
160// ---------------- 171// ----------------
187struct debug *debug_new(struct attr *parent, struct attr **attrs); 198struct debug *debug_new(struct attr *parent, struct attr **attrs);
188int debug_level_get(const char *name); 199int debug_level_get(const char *name);
189void debug_vprintf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap); 200void debug_vprintf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap);
190void debug_vprintf_func(int level, int indent, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap); 201void debug_vprintf_func(int level, int indent, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, va_list ap);
191void debug_printf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, ...); 202void debug_printf(int level, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, ...);
203void debug_for_tests_vprintf(int level, const char *fmt, va_list ap);
204void debug_for_tests_printf(int level, const char *fmt, ...);
192void debug_printf_func(int level, int indent, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, ...); 205void debug_printf_func(int level, int indent, const char *module, const int mlen, const char *function, const int flen, int prefix, const char *fmt, ...);
193void debug_assert_fail(const char *module, const int mlen, const char *function, const int flen, const char *file, int line, const char *expr); 206void debug_assert_fail(const char *module, const int mlen, const char *function, const int flen, const char *file, int line, const char *expr);
194void debug_destroy(void); 207void debug_destroy(void);
195void debug_set_logfile(const char *path); 208void debug_set_logfile(const char *path);
196void debug_dump_mallocs(void); 209void debug_dump_mallocs(void);
346} 359}
347#endif 360#endif
348 361
349#endif 362#endif
350 363
364

Legend:
Removed from v.50  
changed lines
  Added in v.51

   
Visit the ZANavi Wiki