www.pudn.com > xiflter_2.0.rar > Debug.h


//============================================================================================= 
/* 
	Debug.h 
	The Debug Header Function 
 
	Project	: XFILTER 1.0 Personal Firewall 
	Author	: Tony Zhu 
	Create Date	: 2001/08/03 
	Email	: xstudio@xfilt.com 
	URL		: http://www.xfilt.com 
 
	Copyright (c) 2001-2002 XStudio Technology. 
	All Rights Reserved. 
 
	WARNNING:  
*/ 
//============================================================================================= 
 
#ifdef _DEBUG 
 
	#define ODS(fmt)								\ 
	{												\ 
		OutputDebugString(" ***TcpIpDog.dll*** ");	\ 
		OutputDebugString(fmt);						\ 
		OutputDebugString(_T("\n"));				\ 
	} 
 
	#define ODS2(fmt,fmt2)							\ 
	{												\ 
		OutputDebugString(" ***TcpIpDog.dll*** ");	\ 
		OutputDebugString(fmt);						\ 
		OutputDebugString(fmt2);					\ 
		OutputDebugString(_T("\n"));				\ 
	} 
	 
	#define DP1(fmt, var)							\ 
	{												\ 
		OutputDebugString(" ***TcpIpDog.dll*** ");	\ 
		TCHAR sOut[256];							\ 
		_stprintf(sOut, fmt, var);					\ 
		OutputDebugString(sOut);					\ 
		OutputDebugString(_T("\n"));				\ 
	} 
 
#else 
 
	#define ODS(fmt) 
	#define ODS2(fmt,fmt2) 
 
	#define DP1(fmt, x1)			 
 
#endif