📄 debug.hpp
字号:
head 2.1;access;symbols;locks; strict;comment @// @;2.1date 95.10.24.15.52.51; author tsurace; state Release;branches;next 1.1;1.1date 95.10.11.20.59.41; author tsurace; state Beta;branches;next ;desc@Debugging macros (ASSERT()).@2.1log@Roll.@text@#ifndef DEBUG_HPP
#define DEBUG_HPP
// ------------------------------------------------------------------------
// debug.hpp - debugging macros, such as MY assert macro.
// $Id: debug.hpp 1.1 1995/10/11 20:59:41 tsurace Beta tsurace $
// $Log: debug.hpp $// Revision 1.1 1995/10/11 20:59:41 tsurace// Initial revision//
// ------------------------------------------------------------------------
// _MyWin32Assert - called by the ASSERT macro
//
void _MyWin32Assert(const char *, const char *, int, const char *);
// My assert macro. TAkes one parameter:
// ASSERT(NULL != pointer, "Cannot use null pointer");
//
#if !defined( NDEBUG )
# define ASSERT(PRM, COMMENT) \
((PRM) ? \
(void) 0 : \
_MyWin32Assert(#PRM, __FILE__, __LINE__, COMMENT))
#else
# define ASSERT(PRM, COMMENT) ((void)0)
#endif // NDEBUG
#endif // DEBUG_HPP
@1.1log@Initial revision@text@d6 5a10 2// $Id$// $Log$@
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -