MCPcopy Create free account
hub / github.com/SpartanJ/eepp / printBuffer

Function printBuffer

src/eepp/core/debug.cpp:48–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46#ifndef EE_SILENT
47
48static 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
67void eePRINT( const char* format, ... ) {
68 int n, size = 2048;

Callers 3

eePRINTFunction · 0.85
eePRINTLFunction · 0.85
eePRINTCFunction · 0.85

Calls 2

c_strMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected