rpm 4.11.1-rc1

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

debug.h
Go to the documentation of this file.
1
4 #ifndef H_DEBUG
5 #define H_DEBUG
6
7 #include <assert.h>
8
9 #ifdef DMALLOC
10 #include <dmalloc.h>
11 #endif
12
13 #define RPMDBG_TOSTR(a) RPMDBG_TOSTR_ARG(a)
14 #define RPMDBG_TOSTR_ARG(a) #a
15
16 #define RPMDBG() "at: " __FILE__ ":" RPMDBG_TOSTR (__LINE__)
17 #define RPMDBG_M_DEBUG(msg) msg " " RPMDBG()
18 #define RPMDBG_M_NODEBUG(msg) NULL
19
20 #define RPMDBG_M(msg) RPMDBG_M_DEBUG(msg)
21
22 #endif /* H_DEBUG */