diff options
Diffstat (limited to 'tracker-wii/wiiyourself')
-rw-r--r-- | tracker-wii/wiiyourself/wiimote.cpp | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/tracker-wii/wiiyourself/wiimote.cpp b/tracker-wii/wiiyourself/wiimote.cpp index f154a198..f3fcd81f 100644 --- a/tracker-wii/wiiyourself/wiimote.cpp +++ b/tracker-wii/wiiyourself/wiimote.cpp @@ -68,23 +68,23 @@ template<class T> inline T square(const T& val) { return val * val; } // ------------------------------------------------------------------------------------ static void trace_(const char* fmt, ...) { - char buffer[256]; - - if (!fmt) - return; - - va_list ap; - va_start(ap, fmt); - vsnprintf(buffer, std::size(buffer), fmt, ap); - va_end(ap); - - if (IsDebuggerPresent()) - OutputDebugString(buffer); - else - { - fprintf(stderr, "%s\n", buffer); - fflush(stderr); - } + char buffer[256]; + + if (!fmt) + return; + + va_list ap; + va_start(ap, fmt); + vsnprintf(buffer, std::size(buffer), fmt, ap); + va_end(ap); + + if (IsDebuggerPresent()) + OutputDebugString(buffer); + else + { + fprintf(stderr, "%s\n", buffer); + fflush(stderr); + } } // ------------------------------------------------------------------------------------ |