ptdebug.h
资源名称:shell.rar [点击查看]
上传用户:xhy777
上传日期:2007-02-14
资源大小:24088k
文件大小:1k
源码类别:
系统编程
开发平台:
Visual C++
- //-------------------------------------------------------------------------//
- //
- // PTdebug.h
- //
- // Common debugging helpers for Property Tree modules
- //
- //-------------------------------------------------------------------------//
- #ifndef __PTDEBUG_H__
- #define __PTDEBUG_H__
- #ifdef _DEBUG
- # define _ENABLE_TRACING
- # define _ENABLE_ASSERT
- #endif
- //-------------------------------------------------------------------------//
- // TRACE()
- #if defined(_ENABLE_TRACING) && !defined(TRACE)
- void _cdecl DebugTrace(LPCTSTR lpszFormat, ...);
- # ifndef TRACE
- # define TRACE DebugTrace
- # endif
- #else
- inline void _cdecl DebugTrace(LPCTSTR , ...){}
- # ifndef TRACE
- # define TRACE 1 ? (void)0 : DebugTrace
- # endif
- #endif
- //-------------------------------------------------------------------------//
- //-------------------------------------------------------------------------//
- // ASSERT(), VERIFY()
- #if defined(_ENABLE_ASSERT) && !defined(ASSERT)
- # include <crtdbg.h>
- # define ASSERT( expr ) _ASSERTE( expr )
- # define VERIFY( expr ) ASSERT( expr )
- #else
- # define ASSERT( expr )
- # define VERIFY( expr ) ((void)(expr))
- #endif
- //-------------------------------------------------------------------------//
- #endif
English
