Split writeToDebugConsole out of main path

This commit is contained in:
Martin Hořeňovský 2017-08-29 13:51:55 +02:00
parent faead53151
commit 5932576f53
6 changed files with 50 additions and 24 deletions

View file

@ -109,21 +109,3 @@
bool isDebuggerActive() { return false; }
}
#endif // Platform
#ifdef CATCH_PLATFORM_WINDOWS
#include "catch_windows_h_proxy.h"
namespace Catch {
void writeToDebugConsole( std::string const& text ) {
::OutputDebugStringA( text.c_str() );
}
}
#else
namespace Catch {
void writeToDebugConsole( std::string const& text ) {
// !TBD: Need a version for Mac/ XCode and other IDEs
Catch::cout() << text;
}
}
#endif // Platform