void DebugTreeInfo::OutputDebug(TCHAR *Str) { #if defined(__WXMSW__) OutputDebugString( Str ); #elif defined(__WXGTK__) camPrintf( Str ); #else #pragma error( "Not impl'ed from this architechure" ); #endif }
void CDECL Error::ReleaseTrace(LPCTSTR fmt, ...) { TCHAR buf[256]; va_list marker; va_start( marker, fmt ); camVsnprintf( buf, 256, fmt, marker ); #if defined( __WXMSW__ ) OutputDebugString( buf ); #elif defined( __WXGTK__ ) camPrintf( buf ); #else #pragma error( "Not support on this architechure" ) #endif va_end( marker ); }