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

📄 rcunit__assert_8h-source.html

📁 一个做软件测试的源码,可以用于工程中软件测试,全部为自己编写,内付说明
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html;charset=gb2312"><title>RCUnit: include/rcunit/rcunit_assert.h源文件</title><link href="doxygen.css" rel="stylesheet" type="text/css"></head><body><!-- 制作者 Doxygen 1.4.2 --><div class="qindex"><a class="qindex" href="index.html">首页</a> | <a class="qindex" href="modules.html">模块</a> | <a class="qindex" href="annotated.html">数据结构</a> | <a class="qindex" href="dirs.html">目录</a> | <a class="qindex" href="files.html">文件列表</a> | <a class="qindex" href="functions.html">数据字段</a> | <a class="qindex" href="globals.html">全局定义</a> | <a class="qindex" href="pages.html">相关页面</a></div><div class="nav"><a class="el" href="dir_000000.html">include</a>&nbsp;/&nbsp;<a class="el" href="dir_000001.html">rcunit</a></div><h1>rcunit_assert.h</h1><a href="rcunit__assert_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment">00001 00010 <span class="preprocessor">#ifndef _RCUNIT_ASSERT_H_</span>00011 <span class="preprocessor"></span><span class="preprocessor">#define _RCUNIT_ASSERT_H_</span>00012 <span class="preprocessor"></span>00013 <span class="preprocessor">#ifndef _RCUNIT_ASSERT_INTERNAL_H_</span>00014 <span class="preprocessor"></span><span class="preprocessor">#    error "You should include rcunit_assert_internal.h first!"</span>00015 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00016 <span class="preprocessor"></span>00017 <span class="preprocessor">#ifdef __cplusplus</span>00018 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00019 <span class="preprocessor">#endif</span>00020 <span class="preprocessor"></span><a name="l00038"></a><a class="code" href="group__rcunit__making__assertion.html#ga0">00038</a> <span class="preprocessor">#define CUNIT_ASSERT_EQUAL(x, y) _CUNIT_ASSERT_EQUAL_INTERNAL(x, y, __FILE__, __LINE__)</span>00039 <span class="preprocessor"></span><a name="l00055"></a><a class="code" href="group__rcunit__making__assertion.html#ga1">00055</a> <span class="preprocessor">#define CUNIT_ASSERT_DOUBLES_EQUAL(x, y, delta) _CUNIT_ASSERT_DOUBLES_EQUAL_INTERNAL(x, y, delta, __FILE__, __LINE__)</span>00056 <span class="preprocessor"></span><a name="l00072"></a><a class="code" href="group__rcunit__making__assertion.html#ga2">00072</a> <span class="preprocessor">#define CUNIT_ASSERT_STRINGS_EQUAL(x, y) _CUNIT_ASSERT_STRINGS_EQUAL_INTERNAL(x, y, __FILE__, __LINE__)</span>00073 <span class="preprocessor"></span><a name="l00087"></a><a class="code" href="group__rcunit__making__assertion.html#ga3">00087</a> <span class="preprocessor">#define CUNIT_ASSERT(x) _CUNIT_ASSERT_INTERNAL(x, #x, __FILE__, __LINE__)</span>00088 <span class="preprocessor"></span><a name="l00102"></a><a class="code" href="group__rcunit__making__assertion.html#ga4">00102</a> <span class="preprocessor">#define CUNIT_ASSERT_TRUE(x) CUNIT_ASSERT(x)</span>00103 <span class="preprocessor"></span><a name="l00117"></a><a class="code" href="group__rcunit__making__assertion.html#ga5">00117</a> <span class="preprocessor">#define CUNIT_ASSERT_FALSE(x) CUNIT_ASSERT(!(x))</span>00118 <span class="preprocessor"></span><a name="l00146"></a><a class="code" href="group__rcunit__making__assertion.html#ga6">00146</a> <span class="preprocessor">#define CUNIT_ASSERT_FAIL(msg) _CUNIT_ASSERT_FAIL_INTERNAL(msg, __FILE__, __LINE__)</span>00147 <span class="preprocessor"></span>00150 <span class="preprocessor">#ifdef __cplusplus</span>00151 <span class="preprocessor"></span>}00152 <span class="preprocessor">#endif</span>00153 <span class="preprocessor"></span>00154 <span class="preprocessor">#endif </span><span class="comment">/* ifndef _RCUNIT_ASSERT_H_ */</span></pre></div><hr/><table width="100%">  <tr>    <td align="right" valign="center">    如果对 RCUnit 有任何的疑问或建议,请联系realdodo (<a href="mailto:realdodo@163.com">realdodo@163.com</a>)。    </td>  </tr></table></body> </html>

⌨️ 快捷键说明

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