⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 utility.h

📁 A arithmetical resolution about Hanoi tower . compiled by Visaul C++
💻 H
字号:
#if !defined (_UTILITY_H_)
#define _UTILITY_H_


/////////////////////////////////////////////////////////////////////////////
// Utility functions

/* Function prototypes */

LPCTSTR getAppName () ;
LPCTSTR getHelpFileName () ;
BOOL    centerWindow (HWND hwndCentered, HWND hwndPreferredOwner) ;

#define DIM(a)  (sizeof (a) / sizeof (a[0])) 

/////////////////////////////////////////////////////////////////////////////
// Diagnostic functions

#ifdef _DEBUG

/* Function prototypes */

BOOL assertFailedOnLine (LPCSTR lpszFileName, int nLine);

#define THIS_FILE          __FILE__
#define ASSERT(f) \
	do { \
	  if (!(f) && assertFailedOnLine (THIS_FILE, __LINE__)) \
        FatalExit (0); \
	} while (0) \

#define VERIFY(f)          ASSERT(f)

#else   // _DEBUG

#define ASSERT(f)          ((void)0)
#define VERIFY(f)          ((void)(f))

#endif // !_DEBUG

#endif      /* _UTILITY_H_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -