Modify eu-strip option to perform strip in post script of rpm package & add option...
[platform/upstream/rpm.git] / debug.h
diff --git a/debug.h b/debug.h
index 19376c0..3d34ea0 100644 (file)
--- a/debug.h
+++ b/debug.h
 #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 */