WASSERT.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /*==========================================================================
- *
- * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
- *
- * File: wassert.h
- * Content: assert header
- *
- ***************************************************************************/
- #ifndef __WASSERT_INCLUDED__
- #define __WASSERT_INCLUDED__
- #ifdef DEBUG
- #define WASSERT // Enable the Assert() macro
- #endif
- #ifdef WASSERT
- #ifdef _cplusplus
- extern "C" {
- #endif
- void AssertFail(char [], char [], int, char[]);
- #define Assert(f) ((f) ? (void)NULL : (void)AssertFail(#f, __FILE__, __LINE__,NULL))
- #define AssertMessage(f, szMessage) ((f) ? (void)NULL : (void)AssertFail(#f, __FILE__, __LINE__, szMessage))
- #else
- #define Assert(f) (void)NULL // Macro that does nothing
- #define AssertMessage(f, szMessage) (void)NULL
- #ifdef _cplusplus
- };
- #endif
- #endif // ~ASSERT
- #endif