Allow output stream to be specified on the command line
This commit is contained in:
1 parent
925409d7e9
commit
2885339287
10 files changed
+161
-15
No files matched your search
@@ -15,6 +15,8 @@
|
||||
#ifndef TWOBLUECUBES_CATCH_DEBUGGER_HPP_INCLUDED
|
||||
#define TWOBLUECUBES_CATCH_DEBUGGER_HPP_INCLUDED
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#if defined(macintosh) || defined(__APPLE__) || defined(__APPLE_CC__)
|
||||
|
||||
#include <assert.h>
|
||||
@@ -83,5 +85,14 @@
|
||||
inline void DebugBreak(){}
|
||||
#endif
|
||||
|
||||
inline void writeToDebugConsole( const std::string& text )
|
||||
{
|
||||
#ifdef _WIN32
|
||||
::OutputDebugStringA( text.get() );
|
||||
#else
|
||||
// !TBD: Need a version for Mac/ XCode and other IDEs
|
||||
std::cout << text;
|
||||
#endif
|
||||
}
|
||||
|
||||
#endif // TWOBLUECUBES_CATCH_DEBUGGER_HPP_INCLUDED
|
||||
Reference in new issue
Block a user