File: debug.h

package info (click to toggle)
mrd6 0.9.5-release-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,308 kB
  • ctags: 3,956
  • sloc: cpp: 25,728; perl: 462; makefile: 281; ansic: 142; sh: 67
file content (11 lines) | stat: -rw-r--r-- 234 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
#ifndef _mrd_debug_h_
#define _mrd_debug_h_

#define assert_debug(cond, msg, what) \
	if (!cond) { \
		g_mrd->log().info(DEBUG) << "ASSERT failed at " << __FILE__ << ":" << __LINE__ << " with " << msg << endl; \
		what; \
	}

#endif