Commit 71557745 by baustin@google.com

Added a compile flag so that writing to the debug log file can be turned off.

Review URL: http://codereview.appspot.com/3733043/ git-svn-id: https://angleproject.googlecode.com/svn/trunk@524 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent ad5df071
......@@ -21,6 +21,7 @@ namespace gl
{
void trace(const char *format, ...)
{
#if !defined(ANGLE_DISABLE_TRACE)
if (trace_on)
{
if (format)
......@@ -38,5 +39,6 @@ void trace(const char *format, ...)
}
}
}
#endif // !defined(ANGLE_DISABLE_TRACE)
}
}
......@@ -19,7 +19,7 @@ namespace gl
}
// A macro to output a trace of a function call and its arguments to the debugging log
#ifndef NDEBUG
#if !defined(NDEBUG) && !defined(ANGLE_DISABLE_TRACE)
#define TRACE(message, ...) gl::trace("trace: %s"message"\n", __FUNCTION__, __VA_ARGS__)
#else
#define TRACE(...) ((void)0)
......
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