diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2007-03-28 15:35:18 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2007-03-28 15:35:18 +0000 |
commit | e81ef0e865c0d8b50535ee11fc7f50c4b3b1cad5 (patch) | |
tree | a9a8e42dfe3098d49805c03608aacdbaa026d6f5 | |
parent | 14ff2227fbf59e6feb2d73250a65a4a1c1838b32 (diff) | |
download | ATCD-e81ef0e865c0d8b50535ee11fc7f50c4b3b1cad5.tar.gz |
ChangeLogTag:Wed Mar 28 15:34:49 UTC 2007 William R. Otte <wotte@dre.vanderbilt.edu>
-rw-r--r-- | ACE/ChangeLog | 7 | ||||
-rw-r--r-- | ACE/examples/APG/Logging/Trace.h | 32 |
2 files changed, 23 insertions, 16 deletions
diff --git a/ACE/ChangeLog b/ACE/ChangeLog index 17f746650ef..d6dac6acf12 100644 --- a/ACE/ChangeLog +++ b/ACE/ChangeLog @@ -1,3 +1,10 @@ +Wed Mar 28 15:34:49 UTC 2007 William R. Otte <wotte@dre.vanderbilt.edu> + + * examples/APG/Logging/Trace.h + + Removed usage of variadic macros, they are not really necessary + here. + Wed Mar 28 10:45:22 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl> * ace/Event.{h,cpp}: diff --git a/ACE/examples/APG/Logging/Trace.h b/ACE/examples/APG/Logging/Trace.h index 782a610558e..a8ccd2b865d 100644 --- a/ACE/examples/APG/Logging/Trace.h +++ b/ACE/examples/APG/Logging/Trace.h @@ -118,38 +118,38 @@ private: #define ALERT_PREFIX ACE_TEXT ("ALERT%I") #define EMERGENCY_PREFIX ACE_TEXT ("EMERGENCY%I") -#define MY_DEBUG(...) \ +#define MY_DEBUG(X) \ ACE_DEBUG(( LM_DEBUG, \ DEBUG_PREFIX \ - __VA_ARGS__)) -#define MY_INFO(...) \ + X)) +#define MY_INFO(X) \ ACE_DEBUG(( LM_INFO, \ INFO_PREFIX \ - __VA_ARGS__)) -#define MY_NOTICE(...) \ + X)) +#define MY_NOTICE(X) \ ACE_DEBUG(( LM_NOTICE, \ NOTICE_PREFIX \ - __VA_ARGS__)) -#define MY_WARNING(...) \ + X)) +#define MY_WARNING(X) \ ACE_DEBUG(( LM_WARNING, \ WARNING_PREFIX \ - __VA_ARGS__)) -#define MY_ERROR(...) \ + X)) +#define MY_ERROR(X) \ ACE_DEBUG(( LM_ERROR, \ ERROR_PREFIX \ - __VA_ARGS__)) -#define MY_CRITICAL(...) \ + X)) +#define MY_CRITICAL(X) \ ACE_DEBUG(( LM_CRITICAL, \ CRITICAL_PREFIX \ - __VA_ARGS__)) -#define MY_ALERT(...) \ + X)) +#define MY_ALERT(X) \ ACE_DEBUG(( LM_ALERT, \ ALERT_PREFIX \ - __VA_ARGS__)) -#define MY_EMERGENCY(...) \ + X)) +#define MY_EMERGENCY(X) \ ACE_DEBUG(( LM_EMERGENCY, \ EMERGENCY_PREFIX \ - __VA_ARGS__)) + X)) // Listing 3 #endif /* __GNUC__ */ |