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

📄 assert.h

📁 Montavista Linux 下的多平台编译软件xdc
💻 H
字号:
/*****************************************************************************//* assert.h   v6.0.3                                                         *//* Copyright (c) 1993-2006 Texas Instruments Incorporated                    *//*****************************************************************************/#ifndef _ASSERT#define _ASSERT#include <linkage.h>#ifdef __cplusplus//----------------------------------------------------------------------------// <cassert> IS RECOMMENDED OVER <assert.h>.  <assert.h> IS PROVIDED FOR// COMPATIBILITY WITH C AND THIS USAGE IS DEPRECATED IN C++//----------------------------------------------------------------------------#define _NAMESPACE_PREFIX std::extern "C" namespace std{#else#define _NAMESPACE_PREFIX#endif/* this #ifndef can go away when C2000 uses extern C builtins */extern _CODE_ACCESS void _nassert(int);extern _CODE_ACCESS void _assert(int, const char *);extern _CODE_ACCESS void _abort_msg(const char *);#define _STR(x)  __STR(x)#define __STR(x) #x#if defined(NDEBUG)#define assert(_ignore) ((void)0)#elif defined(NASSERT)#define assert(_expr)   _NAMESPACE_PREFIX _nassert(_expr)#else#define assert(_expr)   _NAMESPACE_PREFIX _assert((_expr) != 0,          \                   "Assertion failed, (" _STR(_expr) "), file " __FILE__ \                   ", line " _STR(__LINE__) "\n")#endif /* NDEBUG, NASSERT */#ifdef __cplusplus} /* extern "C" namespace std */#ifndef _CPP_STYLE_HEADERusing std::_nassert;#endif /* _CPP_STYLE_HEADER */#if 0extern _CODE_ACCESS void std::_nassert(int), _assert(int, const char *);extern _CODE_ACCESS void std::_abort_msg(const char *);#endif /* 0 */#ifndef _CPP_STYLE_HEADERusing std::_nassert;#endif  /* !_CPP_STYLE_HEADER */#endif /* __cplusplus */#else#ifdef __cplusplus#ifndef _CPP_STYLE_HEADERusing std::_nassert;#endif /* _CPP_STYLE_HEADER */#endif#endif /* _ASSERT */

⌨️ 快捷键说明

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