pike.git / src / global.h

version» Context lines:

pike.git/src/global.h:505:   /* Set of macros to simplify passing __FILE__ and __LINE__ to    * functions only in debug mode. */   #define DLOC __FILE__, __LINE__   #define COMMA_DLOC , __FILE__, __LINE__   #define DLOC_DECL const char *dloc_file, int dloc_line   #define COMMA_DLOC_DECL , const char *dloc_file, int dloc_line   #define DLOC_ARGS dloc_file, dloc_line   #define DLOC_PF(PRE, SUF) PRE "%s:%d" SUF   #define DLOC_ARGS_OPT dloc_file, dloc_line   #define COMMA_DLOC_ARGS_OPT , dloc_file, dloc_line + #define USE_DLOC_ARGS() ((void)(DLOC_ARGS_OPT))   #define DLOC_ENABLED      #else /* !PIKE_DEBUG */      #define DO_IF_DEBUG(X)   #define DO_IF_DEBUG_ELSE(DEBUG, NO_DEBUG) NO_DEBUG   #define NDEBUG      #define DLOC   #define COMMA_DLOC   #define DLOC_DECL   #define COMMA_DLOC_DECL   #define DLOC_ARGS __FILE__, __LINE__   #define DLOC_PF(PRE, SUF)   #define DLOC_ARGS_OPT   #define COMMA_DLOC_ARGS_OPT -  + #define USE_DLOC_ARGS()      #endif /* !PIKE_DEBUG */      #include <assert.h>      #if defined (PIKE_DEBUG) || defined (DO_PIKE_CLEANUP)   #define DO_IF_DEBUG_OR_CLEANUP(X) X   #else   #define DO_IF_DEBUG_OR_CLEANUP(X)   #endif