debug.h

来自「NDIS HOOK实例」· C头文件 代码 · 共 53 行

H
53
字号
//=============================================================================================
/*
	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: 
*/
//=============================================================================================
#ifndef DEBUG_H
#define DEBUG_H

#ifdef _DEBUG

	#define ODS(fmt)					\
	{									\
		OutputDebugString(fmt);			\
		OutputDebugString(_T("\n"));	\
	}

	#define ODS2(fmt,fmt2)				\
	{									\
		OutputDebugString(fmt);			\
		OutputDebugString(fmt2);		\
		OutputDebugString(_T("\n"));	\
	}
	
	#define DP1(fmt, var)				\
	{									\
		TCHAR sOut[256];				\
		_stprintf(sOut, fmt, var);		\
		OutputDebugString(sOut);		\
	}

#else

	#define ODS(fmt)
	#define ODS2(fmt,fmt2)

	#define DP1(fmt, x1)			

#endif

#endif//DEBUG_H

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?