mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
- Fix debug header, spottted by Gunnar
svn path=/trunk/; revision=16850
This commit is contained in:
parent
a661e95cdf
commit
ddb24faedc
1 changed files with 25 additions and 23 deletions
|
@ -16,7 +16,6 @@
|
||||||
#ifndef __INTERNAL_DEBUG
|
#ifndef __INTERNAL_DEBUG
|
||||||
#define __INTERNAL_DEBUG
|
#define __INTERNAL_DEBUG
|
||||||
|
|
||||||
//#define UNIMPLEMENTED do {DbgPrint("%s at %s:%d is unimplemented, have a nice day\n",__FUNCTION__,__FILE__,__LINE__); for(;;); } while(0);
|
|
||||||
#define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
|
#define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
|
||||||
|
|
||||||
/* FIXME: should probably remove this later */
|
/* FIXME: should probably remove this later */
|
||||||
|
@ -48,31 +47,34 @@
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* TODO: Make the output of file/line and the debug message atomic */
|
/* Print stuff only on Debug Builds*/
|
||||||
#ifdef DBG
|
#ifdef DBG
|
||||||
#define DPRINT1 DbgPrint("(%s:%d) ",__FILE__,__LINE__), DbgPrint
|
|
||||||
#define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
|
/* These are always printed */
|
||||||
#else
|
#define DPRINT1 DbgPrint("(%s:%d) ",__FILE__,__LINE__), DbgPrint
|
||||||
#ifdef __GNUC__
|
#define CHECKPOINT1 do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
|
||||||
#define DPRINT1(args...)
|
|
||||||
#define CHECKPOINT1
|
/* These are printed only if NDEBUG is NOT defined */
|
||||||
#else
|
#ifndef NDEBUG
|
||||||
#define DPRINT1
|
|
||||||
#define CHECKPOINT1
|
#define DPRINT DbgPrint("(%s:%d) ",__FILE__,__LINE__), DbgPrint
|
||||||
#endif /* __GNUC__ */
|
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
|
||||||
#endif
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||||
|
#define CHECKPOINT
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
|
||||||
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
|
|
||||||
#else
|
#else
|
||||||
#ifdef __GNUC__
|
|
||||||
#define DPRINT(args...)
|
/* On non-debug builds, we never show these */
|
||||||
#else
|
#define DPRINT1 do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||||
#define DPRINT
|
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||||
#endif /* __GNUC__ */
|
#define CHECKPOINT1
|
||||||
#define CHECKPOINT
|
#define CHECKPOINT
|
||||||
#endif /* NDEBUG */
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* FUNCTION: Assert a maximum value for the current irql
|
* FUNCTION: Assert a maximum value for the current irql
|
||||||
|
|
Loading…
Reference in a new issue