mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 17:03:01 +00:00
Define the DPRINT and CHECKPOINT macro depend from NDEBUG for each include of debug.h.
svn path=/trunk/; revision=19635
This commit is contained in:
parent
52e4ccd0f1
commit
07183d05b9
1 changed files with 24 additions and 17 deletions
|
@ -15,6 +15,30 @@
|
||||||
* Define NASSERT before including this header to disable assertions
|
* Define NASSERT before including this header to disable assertions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef CHECKPOINT
|
||||||
|
#undef CHECKPOINT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef DPRINT
|
||||||
|
#undef DPRINT
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef NDEBUG
|
||||||
|
#ifdef __GNUC__ /* using GNU C/C99 macro ellipsis */
|
||||||
|
#define DPRINT(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0)
|
||||||
|
#else
|
||||||
|
#define DPRINT DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint
|
||||||
|
#endif
|
||||||
|
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0)
|
||||||
|
#else /* NDEBUG */
|
||||||
|
#ifdef __GNUC__ /* using GNU C/C99 macro ellipsis */
|
||||||
|
#define DPRINT(args...)
|
||||||
|
#else
|
||||||
|
#define DPRINT
|
||||||
|
#endif
|
||||||
|
#define CHECKPOINT
|
||||||
|
#endif /* NDEBUG */
|
||||||
|
|
||||||
#ifndef __INTERNAL_DEBUG
|
#ifndef __INTERNAL_DEBUG
|
||||||
#define __INTERNAL_DEBUG
|
#define __INTERNAL_DEBUG
|
||||||
|
|
||||||
|
@ -94,23 +118,6 @@
|
||||||
|
|
||||||
#define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0)
|
#define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0)
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
#ifdef __GNUC__ /* using GNU C/C99 macro ellipsis */
|
|
||||||
#define DPRINT(args...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(args); } while(0)
|
|
||||||
#else
|
|
||||||
#define DPRINT DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint
|
|
||||||
#endif
|
|
||||||
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0)
|
|
||||||
#else /* NDEBUG */
|
|
||||||
#ifdef __GNUC__ /* using GNU C/C99 macro ellipsis */
|
|
||||||
#define DPRINT(args...)
|
|
||||||
#else
|
|
||||||
#define DPRINT
|
|
||||||
#endif
|
|
||||||
#define CHECKPOINT
|
|
||||||
#endif /* NDEBUG */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FUNCTION: Assert a maximum value for the current irql
|
* FUNCTION: Assert a maximum value for the current irql
|
||||||
* ARGUMENTS:
|
* ARGUMENTS:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue