/*---------------------------------------------------------------------- Debugging Applications for Microsoft .NET and Microsoft Windows Copyright © 1997-2003 John Robbins -- All rights reserved. ----------------------------------------------------------------------*/ /*////////////////////////////////////////////////////////////////////// // Necessary Includes //////////////////////////////////////////////////////////////////////*/ #include "STDAFX.h" #include "Verbose.h" /*////////////////////////////////////////////////////////////////////// // File Scope Constants & Defines //////////////////////////////////////////////////////////////////////*/ /*////////////////////////////////////////////////////////////////////// // File Scope Typedefs //////////////////////////////////////////////////////////////////////*/ /*////////////////////////////////////////////////////////////////////// // File Scope Prototypes //////////////////////////////////////////////////////////////////////*/ /*////////////////////////////////////////////////////////////////////// // File Scope Globals //////////////////////////////////////////////////////////////////////*/ // The verbose output settings. static BOOL g_bShowVerbose = FALSE ; /*////////////////////////////////////////////////////////////////////// // EXTERNALLY VISIBLE CODE STARTS HERE //////////////////////////////////////////////////////////////////////*/ void SetVerbose ( BOOL bShow ) { g_bShowVerbose = bShow ; } void VerboseOut ( LPCTSTR szFmt , ... ) { if ( TRUE == g_bShowVerbose ) { va_list marker ; va_start ( marker, szFmt ) ; _vtprintf ( szFmt , marker ) ; va_end( marker ); } } void WarningOut ( LPCTSTR szFmt , ... ) { va_list marker ; va_start ( marker, szFmt ) ; _vftprintf ( stderr , szFmt , marker ) ; va_end( marker ); } /*////////////////////////////////////////////////////////////////////// // FILE SCOPE CODE STARTS HERE //////////////////////////////////////////////////////////////////////*/ /*---------------------------------------------------------------------- FUNCTION : DISCUSSION : PARAMETERS : RETURNS : ----------------------------------------------------------------------*/