2000-12-13 04:03:45 +08:00
|
|
|
/**
|
|
|
|
* To be included after all other includes.
|
|
|
|
*/
|
|
|
|
#ifndef H_DEBUG
|
|
|
|
#define H_DEBUG
|
|
|
|
|
|
|
|
#include <assert.h>
|
|
|
|
|
|
|
|
#ifdef DMALLOC
|
|
|
|
#include <dmalloc.h>
|
|
|
|
#endif
|
|
|
|
|
2007-12-04 17:25:46 +08:00
|
|
|
#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)
|
|
|
|
|
2000-12-13 04:03:45 +08:00
|
|
|
#endif /* H_DEBUG */
|