mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +00:00
only define DPRINT macro if the compiler can handle __VA_ARGS__
reduces Warnings when compiling with MSVC svn path=/trunk/; revision=18520
This commit is contained in:
parent
0b5368c660
commit
643679edee
1 changed files with 5 additions and 2 deletions
|
@ -61,8 +61,9 @@
|
||||||
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
|
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#if defined (__STDC__)
|
||||||
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||||
|
#endif
|
||||||
#define CHECKPOINT
|
#define CHECKPOINT
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -70,8 +71,10 @@
|
||||||
#else
|
#else
|
||||||
|
|
||||||
/* On non-debug builds, we never show these */
|
/* On non-debug builds, we never show these */
|
||||||
|
#if defined (__STDC__)
|
||||||
#define DPRINT1(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
#define DPRINT1(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||||
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
|
||||||
|
#endif
|
||||||
#define CHECKPOINT1
|
#define CHECKPOINT1
|
||||||
#define CHECKPOINT
|
#define CHECKPOINT
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue