assert.h
来自「大名鼎鼎的远程登录软件putty的Symbian版源码」· C头文件 代码 · 共 42 行
H
42 行
/** @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 + =
减小字号Ctrl + -
显示快捷键?