csomh / source-git / rpm

Forked from source-git/rpm 4 years ago
Clone
2ff057
/**
2ff057
 * To be included after all other includes.
2ff057
 */
2ff057
#ifndef	H_DEBUG
2ff057
#define	H_DEBUG
2ff057
2ff057
#include <assert.h>
2ff057
2ff057
#ifdef	DMALLOC
2ff057
#include <dmalloc.h>
2ff057
#endif
2ff057
2ff057
#define RPMDBG_TOSTR(a)		RPMDBG_TOSTR_ARG(a)
2ff057
#define RPMDBG_TOSTR_ARG(a)	#a
2ff057
2ff057
#define RPMDBG()		"at: " __FILE__ ":" RPMDBG_TOSTR (__LINE__)
2ff057
#define RPMDBG_M_DEBUG(msg)	msg " " RPMDBG()
2ff057
#define RPMDBG_M_NODEBUG(msg)	NULL
2ff057
2ff057
#define RPMDBG_M(msg)		RPMDBG_M_DEBUG(msg)
2ff057
2ff057
#endif	/* H_DEBUG */