⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 debug.h

📁 这是一本学习 window编程的很好的参考教材
💻 H
字号:
//=============================================================================================
/*
	Debug.h
	The Debug Header Function

	Project	: PKF 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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -