Debug() only defined for GNU compiler.

This commit is contained in:
Ron Sluiter
2003-02-13 21:54:00 +00:00
parent bdee350e22
commit e9a7f3c746
+10 -6
View File
@@ -2,9 +2,9 @@
FILENAME... motorRecord.cc
USAGE... Motor Record Support.
Version: $Revision: 1.3 $
Version: $Revision: 1.4 $
Modified By: $Author: sluiter $
Last Modified: $Date: 2002-10-31 20:38:45 $
Last Modified: $Date: 2003-02-13 21:54:00 $
*/
/*
@@ -67,11 +67,15 @@ Last Modified: $Date: 2002-10-31 20:38:45 $
#define STATIC static
/*----------------debugging-----------------*/
#ifdef DEBUG
volatile int motorRecordDebug = 0;
#define Debug(l, f, args...) {if (l <= motorRecordDebug) printf(f, ## args);}
#ifdef __GNUG__
#ifdef DEBUG
volatile int motorRecordDebug = 0;
#define Debug(l, f, args...) {if (l <= motorRecordDebug) printf(f, ## args);}
#else
#define Debug(l, f, args...)
#endif
#else
#define Debug(l, f, args...)
#define Debug()
#endif