Split writeToDebugConsole out of main path
This commit is contained in:
parent
faead53151
commit
5932576f53
6 changed files with 50 additions and 24 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue