Code/Resource
Windows Develop
Linux-Unix program
Internet-Socket-Network
Web Server
Browser Client
Ftp Server
Ftp Client
Browser Plugins
Proxy Server
Email Server
Email Client
WEB Mail
Firewall-Security
Telnet Server
Telnet Client
ICQ-IM-Chat
Search Engine
Sniffer Package capture
Remote Control
xml-soap-webservice
P2P
WEB(ASP,PHP,...)
TCP/IP Stack
SNMP
Grid Computing
SilverLight
DNS
Cluster Service
Network Security
Communication-Mobile
Game Program
Editor
Multimedia program
Graph program
Compiler program
Compress-Decompress algrithms
Crypt_Decrypt algrithms
Mathimatics-Numerical algorithms
MultiLanguage
Disk/Storage
Java Develop
assembly language
Applications
Other systems
Database system
Embeded-SCM Develop
FlashMX/Flex
source in ebook
Delphi VCL
OS Develop
MiddleWare
MPI
MacOS develop
LabView
ELanguage
Software/Tools
E-Books
Artical/Document
ptdebug.h
Package: shell.rar [view]
Upload User: xhy777
Upload Date: 2007-02-14
Package Size: 24088k
Code Size: 1k
Category:
Windows Kernel
Development Platform:
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