Beispiel #1
0
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
}
Beispiel #2
0
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 );
}