avl_debug_macros.h

来自「Although there has been a lot of AVL tre」· C头文件 代码 · 共 54 行

H
54
字号
/////////////////////////////////////////////////////////////////////////////
// Name:        avl_debug_macros.h
// Version:		1.0.0
// Purpose:     AVL Library Debug Macros
// Author:      Wu Yuh Song
// Modified by:
// Created:     07/30/1999
// Copyright:   (c) Wu Yuh Song
// Licence:   	Wu Yuh Song's Library Licence, Version 1
/////////////////////////////////////////////////////////////////////////////

/////////////////////////////////////////////////////////////////////////////
//
//
//	These macros are designed specifically for Microsoft Visual C++
//	and GCC.
//
//  Modifications might be needed if you are using the other development
//  tools.
//
//
/////////////////////////////////////////////////////////////////////////////


#ifndef ___AVL_DEBUG_MACROS___
#define ___AVL_DEBUG_MACROS___

#if ( (!defined(_DEBUG) && defined(_MSC_VER))	|| \
	  (defined(NDEBUG) && !defined(_MSC_VER)) )
		  
	#undef _DEBUG

	#define verify(arg)  (arg)
	#define assert(arg)	 (NULL)
#else

	#define _DEBUG

	#include <assert.h>
	#define verify(arg)	 assert(arg)
	
#endif


#ifndef _MFC_VER

	void NullTrace(...){}
	#define TRACE ::NullTrace

#endif



#endif

⌨️ 快捷键说明

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