rpm: debug.h Source File

rpm 4.10.0

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

- File List
- Globals

debug.h
Go to the documentation of this file.

    00001
    00004 #ifndef H_DEBUG
    00005 #define H_DEBUG
    00006
    00007 #include <assert.h>
    00008
    00009 #ifdef  DMALLOC
    00010 #include <dmalloc.h>
    00011 #endif
    00012
    00013 #define RPMDBG_TOSTR(a)         RPMDBG_TOSTR_ARG(a)
    00014 #define RPMDBG_TOSTR_ARG(a)     #a
    00015
    00016 #define RPMDBG()                "at: " __FILE__ ":" RPMDBG_TOSTR (__LINE__)
    00017 #define RPMDBG_M_DEBUG(msg)     msg " " RPMDBG()
    00018 #define RPMDBG_M_NODEBUG(msg)   NULL
    00019
    00020 #define RPMDBG_M(msg)           RPMDBG_M_DEBUG(msg)
    00021
    00022 #endif  /* H_DEBUG */