Add missing newline in OutputDebugStringA invocation.

Before this commit, every debug message was correctly printed
to stdout, but they were all concatenated onto a single line in
the Visual Studio "Output" pane.
pull/109/head
whitequark 2016-11-16 05:55:07 +00:00
parent 9673225648
commit 1ec36fc657
1 changed files with 1 additions and 0 deletions

View File

@ -25,6 +25,7 @@ void dbp(const char *str, ...)
// The native version of OutputDebugString, unlike most others, // The native version of OutputDebugString, unlike most others,
// is OutputDebugStringA. // is OutputDebugStringA.
OutputDebugStringA(buf); OutputDebugStringA(buf);
OutputDebugStringA("\n");
#ifndef NDEBUG #ifndef NDEBUG
// Duplicate to stderr in debug builds, but not in release; this is slow. // Duplicate to stderr in debug builds, but not in release; this is slow.