| 46 | #ifndef EE_SILENT |
| 47 | |
| 48 | static void printBuffer( std::string& buf, bool newLine ) { |
| 49 | if ( newLine ) |
| 50 | buf += "\n"; |
| 51 | |
| 52 | #ifdef EE_COMPILER_MSVC |
| 53 | OutputDebugStringA( buf.c_str() ); |
| 54 | #else |
| 55 | if ( PrintDebugInLog && Log::instance()->isLoggingToStdOut() ) { |
| 56 | Log::instance()->write( buf ); |
| 57 | return; |
| 58 | } else { |
| 59 | printf( "%s", buf.c_str() ); |
| 60 | } |
| 61 | #endif |
| 62 | |
| 63 | if ( PrintDebugInLog ) |
| 64 | Log::instance()->write( buf ); |
| 65 | } |
| 66 | |
| 67 | void eePRINT( const char* format, ... ) { |
| 68 | int n, size = 2048; |