File: debug.h

package info (click to toggle)
rpm 6.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,580 kB
  • sloc: cpp: 53,319; ansic: 13,888; sh: 2,038; python: 1,175; makefile: 35; xml: 26
file content (18 lines) | stat: -rw-r--r-- 391 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/**
 * To be included after all other includes.
 */
#ifndef	H_DEBUG
#define	H_DEBUG

#include <assert.h>

#define RPMDBG_TOSTR(a)		RPMDBG_TOSTR_ARG(a)
#define RPMDBG_TOSTR_ARG(a)	#a

#define RPMDBG()		"at: " __FILE__ ":" RPMDBG_TOSTR (__LINE__)
#define RPMDBG_M_DEBUG(msg)	msg " " RPMDBG()
#define RPMDBG_M_NODEBUG(msg)	NULL

#define RPMDBG_M(msg)		RPMDBG_M_DEBUG(msg)

#endif	/* H_DEBUG */