Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
catch_debug_console.cpp
Go to the documentation of this file.
1/*
2 * Created by Martin on 29/08/2017.
3 *
4 * Distributed under the Boost Software License, Version 1.0. (See accompanying
5 * file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
6 *
7 */
8
10#include "catch_stream.h"
11#include "catch_platform.h"
13
14#ifdef CATCH_PLATFORM_WINDOWS
15
16 namespace Catch {
17 void writeToDebugConsole( std::string const& text ) {
18 ::OutputDebugStringA( text.c_str() );
19 }
20 }
21
22#else
23
24 namespace Catch {
25 void writeToDebugConsole( std::string const& text ) {
26 // !TBD: Need a version for Mac/ XCode and other IDEs
27 Catch::cout() << text;
28 }
29 }
30
31#endif // Platform
std::ostream & cout()
void writeToDebugConsole(std::string const &text)