The trace parameter is better termed 'message' instead of 'argument'

Trac #11526 Signed-off-by: Shannon Woods Signed-off-by: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@66 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 24a04861
...@@ -24,16 +24,16 @@ namespace gl ...@@ -24,16 +24,16 @@ namespace gl
// A macro to output a trace of a function call and its arguments to the debugging log // A macro to output a trace of a function call and its arguments to the debugging log
#ifndef NDEBUG #ifndef NDEBUG
#define TRACE(arguments, ...) gl::trace("trace: %s"arguments"\n", __FUNCTION__, __VA_ARGS__) #define TRACE(message, ...) gl::trace("trace: %s"message"\n", __FUNCTION__, __VA_ARGS__)
#else #else
#define TRACE(...) ((void)0) #define TRACE(...) ((void)0)
#endif #endif
// A macro to output a function call and its arguments to the debugging log, to denote an item in need of fixing. Will occur even in release mode. // A macro to output a function call and its arguments to the debugging log, to denote an item in need of fixing. Will occur even in release mode.
#define FIXME(arguments, ...) gl::trace("fixme: %s"arguments"\n", __FUNCTION__, __VA_ARGS__) #define FIXME(message, ...) gl::trace("fixme: %s"message"\n", __FUNCTION__, __VA_ARGS__)
// A macro to output a function call and its arguments to the debugging log, in case of error. Will occur even in release mode. // A macro to output a function call and its arguments to the debugging log, in case of error. Will occur even in release mode.
#define ERR(arguments, ...) gl::trace("err: %s"arguments"\n", __FUNCTION__, __VA_ARGS__) #define ERR(message, ...) gl::trace("err: %s"message"\n", __FUNCTION__, __VA_ARGS__)
// A macro asserting a condition and outputting failures to the debug log // A macro asserting a condition and outputting failures to the debug log
#define ASSERT(expression) do { \ #define ASSERT(expression) do { \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment