// This is a part of the Microsoft Foundation Classes C++ library. // Copyright (C) Microsoft Corporation // All rights reserved. // // This source code is only intended as a supplement to the // Microsoft Foundation Classes Reference and related // electronic documentation provided with the library. // See these sources for detailed information regarding the // Microsoft Foundation Classes product. #include "stdafx.h" #include #ifdef _DEBUG // entire file ///////////////////////////////////////////////////////////////////////////// // Helper routines that can be called from debugger void AFXAPI AfxDump(const CObject* pOb) { #ifndef _WIN32_WCE afxDump << pOb; #else (pOb); #endif // !_WIN32_WCE } ///////////////////////////////////////////////////////////////////////////// // Diagnostic Trace void AFX_CDECL AfxTrace(LPCTSTR lpszFormat, ...) { va_list args; va_start(args, lpszFormat); int nBuf; TCHAR szBuffer[512]; #ifndef _WIN32_WCE // _vstprintf_s nBuf = _vstprintf_s(szBuffer, _countof(szBuffer), lpszFormat, args); #else nBuf = _vsntprintf(szBuffer, _countof(szBuffer), lpszFormat, args); #endif // !_WIN32_WCE // was there an error? was the expanded string too long? ASSERT(nBuf >= 0); #ifndef _WIN32_WCE afxDump << szBuffer; #endif // !_WIN32_WCE va_end(args); } #endif //_DEBUG /////////////////////////////////////////////////////////////////////////////