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 9 #include "catch_debug_console.h" 10 #include "catch_stream.h" 11 #include "catch_platform.h" 12 #include "catch_windows_h_proxy.h" 13 14 #ifdef CATCH_PLATFORM_WINDOWS 15 16 namespace Catch { writeToDebugConsole(std::string const & text)17 void writeToDebugConsole( std::string const& text ) { 18 ::OutputDebugStringA( text.c_str() ); 19 } 20 } 21 22 #else 23 24 namespace Catch { writeToDebugConsole(std::string const & text)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 32