diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2007-12-04 11:25:46 +0200 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2007-12-04 11:25:46 +0200 |
commit | dbdbe8010cd944f026a5a4e5d071eb31d29d81c4 (patch) | |
tree | b7b0f4014409f8514a1729b48a8776660747d149 /debug.h | |
parent | 422fa0dbeab879d3510c879554c33e359e0ab7ab (diff) | |
download | rpm-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.tar.gz rpm-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.tar.bz2 rpm-dbdbe8010cd944f026a5a4e5d071eb31d29d81c4.zip |
Eliminate debug junk from the API
- add some helper macros to accomplish the same, easy to enable / disable
as needed
Diffstat (limited to 'debug.h')
-rw-r--r-- | debug.h | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -10,4 +10,13 @@ #include <dmalloc.h> #endif +#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 */ |