DEBUG.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:2k
源码类别:
Windows编程
开发平台:
Visual C++
- //==========================================================================;
- //
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
- // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED
- // TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR
- // A PARTICULAR PURPOSE.
- //
- // Copyright (C) 1993 - 1997 Microsoft Corporation. All Rights Reserved.
- //
- //--------------------------------------------------------------------------;
- //
- // debug.h
- //
- // Description:
- //
- // History:
- // 11/23/92 created.
- //
- //==========================================================================;
- #ifndef _INC_DEBUG
- #define _INC_DEBUG
- #ifdef __cplusplus
- extern "C"
- {
- #endif
- //
- //
- //
- //
- //
- #define DEBUG_SECTION "Debug" // section name for
- #define DEBUG_MODULE_NAME "MCIAPP" // key name and prefix for output
- #define DEBUG_MAX_LINE_LEN 255 // max line length (bytes)
- //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
- //
- //
- //
- //- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ;
- #ifdef DEBUG
- BOOL WINAPI DbgEnable(BOOL fEnable);
- UINT WINAPI DbgSetLevel(UINT uLevel);
- UINT WINAPI DbgInitialize(BOOL fEnable);
- void FAR CDECL dprintf(UINT uDbgLevel, LPSTR szFmt, ...);
- #define DPF dprintf
- #else
- #define DbgEnable(x) FALSE
- #define DbgSetLevel(x) 0
- #define DbgInitialize(x) 0
- #pragma warning(disable:4002)
- #define DPF()
- #endif
- #ifdef __cplusplus
- }
- #endif
- #endif // _INC_DEBUG