From e9a7f3c7464f8f3b2ea028e33eb73b0875dfaf6d Mon Sep 17 00:00:00 2001 From: Ron Sluiter Date: Thu, 13 Feb 2003 21:54:00 +0000 Subject: [PATCH] Debug() only defined for GNU compiler. --- motorApp/MotorSrc/motorRecord.cc | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/motorApp/MotorSrc/motorRecord.cc b/motorApp/MotorSrc/motorRecord.cc index 365e8144..e5278815 100644 --- a/motorApp/MotorSrc/motorRecord.cc +++ b/motorApp/MotorSrc/motorRecord.cc @@ -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