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

📄 assert.h

📁 大名鼎鼎的远程登录软件putty的Symbian版源码
💻 H
字号:
/** @file assert.h *  * A new assert.h to override a broken one in the 9210i SDK version 1.2. * Panics the application if an assertion fails. * * Copyright 2002 Petteri Kangaslampi * * See license.txt for full copyright and license information.*/#ifndef __PUTTY_ASSERT_H__#define __PUTTY_ASSERT_H__#ifdef __cplusplusextern "C" {#endif#define DO_ASSERT_ALWAYS/** * @def assert(e) * * A replacement assert macro. Panics the application if the expression * is false, using the current source file name as the panic category * and the line number as the panic code.*/#if defined(NDEBUG) && !defined(DO_ASSERT_ALWAYS)#define assert(e)		( )#else#define assert(e) ((e) ? (void)0 : assert_failed(__FILE__, __LINE__, #e))#endifvoid assert_failed(const char *file, int line, const char *expr);#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

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