📄 debug.hpp
字号:
#ifndef DEBUG_HPP
#define DEBUG_HPP
// ------------------------------------------------------------------------
// debug.hpp - debugging macros, such as MY assert macro.
// $Id: debug.hpp 2.1 1995/10/24 15:52:51 tsurace Beta $
// $Log: debug.hpp $// Revision 2.1 1995/10/24 15:52:51 tsurace// Roll.//// 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -