From 10ac07ca37ae7f3ebecdd89fbf8b56f644bd5fa5 Mon Sep 17 00:00:00 2001 From: tsutsumi <> Date: Sat, 13 Sep 2003 05:23:19 +0000 Subject: [PATCH] add doxycomment and change function name --- src/ccunit/CCUnitAssert.c | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/src/ccunit/CCUnitAssert.c b/src/ccunit/CCUnitAssert.c index 2776529..8f689e8 100644 --- a/src/ccunit/CCUnitAssert.c +++ b/src/ccunit/CCUnitAssert.c @@ -20,21 +20,31 @@ /* * $Id$ */ + +/** @file + * Assert function implementations. + */ + #include #include -#include +#include #include #include +/** + * @addtogroup CCUnitAssert + * @{ + */ + extern jmp_buf _ccunit_runTest_env; void ccunit_assert (const char* file, unsigned int line, bool cond, const char* condstr) { - CCUnitFailure* f; + CCUnitTestFailure* f; if (cond) return; - f = ccunit_newFailure (file, line, condstr, NULL, NULL); + f = ccunit_newTestFailure (file, line, condstr, NULL, NULL); longjmp (_ccunit_runTest_env, (int)f); } @@ -47,7 +57,7 @@ void ccunit_assert_test (const char* file, unsigned int line, char* ac; int require; int capacity; - CCUnitFailure* f; + CCUnitTestFailure* f; if (cond) return; ex = NULL; @@ -91,7 +101,9 @@ void ccunit_assert_test (const char* file, unsigned int line, ac = ex + exlen + 1; } } - f = ccunit_newFailure (file, line, condstr, ex, ac); + f = ccunit_newTestFailure (file, line, condstr, ex, ac); safe_free (ex); longjmp (_ccunit_runTest_env, (int)f); } + +/** @} */ -- 2.11.0