📄 rcunit__case_8h-source.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_case.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> / <a class="el" href="dir_000001.html">rcunit</a></div><h1>rcunit_case.h</h1><a href="rcunit__case_8h.html">浏览该文件的文档。</a><div class="fragment"><pre class="fragment">00001 00006 <span class="preprocessor">#ifndef _RCUNIT_CASE_H_</span>00007 <span class="preprocessor"></span><span class="preprocessor">#define _RCUNIT_CASE_H_</span>00008 <span class="preprocessor"></span>00009 <span class="preprocessor">#ifdef __cplusplus</span>00010 <span class="preprocessor"></span><span class="keyword">extern</span> <span class="stringliteral">"C"</span> {00011 <span class="preprocessor">#endif</span>00012 <span class="preprocessor"></span>00013 <span class="keyword">typedef</span> void (*__CUNIT_TEST_CASE_FUNC_TYPE)();00014 <a name="l00020"></a><a class="code" href="struct____tagCUnitTestCaseListNode.html">00020</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct____tagCUnitTestCaseListNode.html">__tagCUnitTestCaseListNode</a>00021 {<a name="l00022"></a><a class="code" href="struct____tagCUnitTestCaseListNode.html#o0">00022</a> <span class="keyword">struct </span><a class="code" href="struct____tagCUnitTestCaseListNode.html">__tagCUnitTestCaseListNode</a> *<a class="code" href="struct____tagCUnitTestCaseListNode.html#o0">next</a>; <a name="l00023"></a><a class="code" href="struct____tagCUnitTestCaseListNode.html#o1">00023</a> __CUNIT_TEST_CASE_FUNC_TYPE <a class="code" href="struct____tagCUnitTestCaseListNode.html#o1">func</a>; <a name="l00024"></a><a class="code" href="struct____tagCUnitTestCaseListNode.html#o2">00024</a> <span class="keywordtype">char</span> *<a class="code" href="struct____tagCUnitTestCaseListNode.html#o2">name</a>; 00025 }<a class="code" href="struct____tagCUnitTestCaseListNode.html">__CUNIT_TEST_CASE_LIST_NODE_S</a>;00026 <a name="l00032"></a><a class="code" href="struct____tagCUnitTestCaseFailedMsg.html">00032</a> <span class="keyword">typedef</span> <span class="keyword">struct </span><a class="code" href="struct____tagCUnitTestCaseFailedMsg.html">__tagCUnitTestCaseFailedMsg</a>00033 {<a name="l00034"></a><a class="code" href="struct____tagCUnitTestCaseFailedMsg.html#o0">00034</a> <span class="keyword">struct </span><a class="code" href="struct____tagCUnitTestCaseFailedMsg.html">__tagCUnitTestCaseFailedMsg</a> * <a class="code" href="struct____tagCUnitTestCaseFailedMsg.html#o0">next</a>; <a name="l00035"></a><a class="code" href="struct____tagCUnitTestCaseFailedMsg.html#o1">00035</a> <span class="keywordtype">char</span> * <a class="code" href="struct____tagCUnitTestCaseFailedMsg.html#o1">msg</a>; 00036 }<a class="code" href="struct____tagCUnitTestCaseFailedMsg.html">__CUNIT_TEST_CASE_FAILED_MSG_S</a>;00037 00038 <span class="comment">/* Scope constraint */</span>00039 <span class="comment">/* if using VC 6.0 or lower */</span>00040 <span class="preprocessor">#if _MSC_VER < 1300</span>00041 <span class="preprocessor"></span><span class="preprocessor"># define CUNIT_DECL_TEST static</span>00042 <span class="preprocessor"></span><span class="preprocessor">#else</span>00043 <span class="preprocessor"></span><span class="preprocessor"># define CUNIT_DECL_TEST</span>00044 <span class="preprocessor"></span><span class="preprocessor">#endif</span>00045 <span class="preprocessor"></span>00046 <span class="comment">/* 声明测试函数 */</span>00047 <span class="preprocessor">#define _CUNIT_DECLARE_TEST_CASE_FUNC(CaseFunc) \</span>00048 <span class="preprocessor"> CUNIT_DECL_TEST void CaseFunc()</span>00049 <span class="preprocessor"></span>00050 <span class="preprocessor">#ifdef __cplusplus</span>00051 <span class="preprocessor"></span>}00052 <span class="preprocessor">#endif</span>00053 <span class="preprocessor"></span>00054 <span class="preprocessor">#endif </span><span class="comment">/* ifndef _RCUNIT_CASE_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 + -