extern void ccunit_assert (const char* file, unsigned int line,
bool condition, const char* condstr);
-#ifndef CCUNIT_HAVE_U_CHAR
-#define CCUNIT_HAVE_U_CHAR
-typedef unsigned char u_char; /**< u_char */
-#endif
-#ifndef CCUNIT_HAVE_U_INT
-#define CCUNIT_HAVE_U_INT
-typedef unsigned int u_int; /**< u_int */
-#endif
-#ifndef CCUNIT_HAVE_U_SHORT
-#define CCUNIT_HAVE_U_SHORT
-typedef unsigned short u_short; /**< u_short */
-#endif
-#ifndef CCUNIT_HAVE_U_LONG
-#define CCUNIT_HAVE_U_LONG
-typedef unsigned long u_long; /**< u_long */
-#endif
-#ifndef CCUNIT_HAVE_QUAD_T
-#ifdef CCUNIT_HAVE_INT64_T
-#define CCUNIT_HAVE_QUAD_T 1
-typedef int64_t quad_t; /**< quad_t */
-#else /* !CCUNIT_HAVE_INT64_T */
-#if CCUNIT_HAVE_LONG_LONG
-#define CCUNIT_HAVE_QUAD_T 1
-typedef long long quad_t; /**< quad_t */
-#endif /* CCUNIT_HAVE_LONG_LONG */
-#endif /* CCUNIT_HAVE_INT64_T */
-#endif /* !CCUNIT_HAVE_QUAD_T */
-
-#ifndef CCUNIT_HAVE_U_QUAD_T
-#ifdef CCUNIT_HAVE_U_INT64_T
-#define CCUNIT_HAVE_U_QUAD_T 1
-typedef u_int64_t u_quad_t; /**< u_quad_t */
-#else /* !CCUNIT_HAVE_U_INT64_T */
-#ifdef CCUNIT_HAVE_LONG_LONG
-#define CCUNIT_HAVE_U_QUAD_T 1
-typedef unsigned long long u_quad_t; /**< u_quad_t */
-#endif /* CCUNIT_HAVE_LONG_LONG */
-#endif /* CCUNIT_HAVE_U_INT64_T */
-#endif /* !CCUNIT_HAVE_U_QUAD_T */
-
-typedef const char* _ccunit_str_t; /**< string type */
-typedef const void* _ccunit_ptr_t; /**< pointer type */
-typedef const void* _ccunit_obj_t; /**< object type */
-
-/**
- * @name Declare assert test types
- * @{
- */
-/**
- * Asserts that a condition is true. If it isn't it longjmp with
- * _ccunit_runTest_env.
- *
- * @param TYP test value type
- * @throws _ccunit_runTest_env If condition is false.
- * @ingroup Assertions
- */
-#define DCL_CCUNIT_ASSERT_TEST_TYPE(TYP) \
- extern void ccunit_assert_test_ ## TYP (const char* file, unsigned int line, \
- bool cond, const char* condstr, \
- TYP expect, TYP acutal)
-
-DCL_CCUNIT_ASSERT_TEST_TYPE(char);
-DCL_CCUNIT_ASSERT_TEST_TYPE(u_char);
-DCL_CCUNIT_ASSERT_TEST_TYPE(int);
-DCL_CCUNIT_ASSERT_TEST_TYPE(u_int);
-DCL_CCUNIT_ASSERT_TEST_TYPE(short);
-DCL_CCUNIT_ASSERT_TEST_TYPE(u_short);
-DCL_CCUNIT_ASSERT_TEST_TYPE(long);
-DCL_CCUNIT_ASSERT_TEST_TYPE(u_long);
-DCL_CCUNIT_ASSERT_TEST_TYPE(float);
-DCL_CCUNIT_ASSERT_TEST_TYPE(double);
-DCL_CCUNIT_ASSERT_TEST_TYPE(_ccunit_str_t);
-DCL_CCUNIT_ASSERT_TEST_TYPE(_ccunit_ptr_t);
-#if CCUNIT_HAVE_QUAD_T
-DCL_CCUNIT_ASSERT_TEST_TYPE(quad_t);
-#endif
-#if CCUNIT_HAVE_U_QUAD_T
-DCL_CCUNIT_ASSERT_TEST_TYPE(u_quad_t);
-#endif
-
-typedef char* (*ccunit_toString_t)(_ccunit_obj_t);
-
-extern void ccunit_assert_test__ccunit_obj_t (const char* file, unsigned int line,
- bool cond, const char* condstr,
- _ccunit_obj_t expect,
- _ccunit_obj_t acutal,
- ccunit_toString_t);
-
-/** @} */
-
/**
* Asserts that a condition is true. If it isn't it longjmp with
* _ccunit_runTest_env.
/** @} */
+#ifndef CCUNIT_HAVE_U_CHAR
+#define CCUNIT_HAVE_U_CHAR
+typedef unsigned char u_char; /**< u_char */
+#endif
+#ifndef CCUNIT_HAVE_U_INT
+#define CCUNIT_HAVE_U_INT
+typedef unsigned int u_int; /**< u_int */
+#endif
+#ifndef CCUNIT_HAVE_U_SHORT
+#define CCUNIT_HAVE_U_SHORT
+typedef unsigned short u_short; /**< u_short */
+#endif
+#ifndef CCUNIT_HAVE_U_LONG
+#define CCUNIT_HAVE_U_LONG
+typedef unsigned long u_long; /**< u_long */
+#endif
+#ifndef CCUNIT_HAVE_QUAD_T
+#ifdef CCUNIT_HAVE_INT64_T
+#define CCUNIT_HAVE_QUAD_T 1
+typedef int64_t quad_t; /**< quad_t */
+#else /* !CCUNIT_HAVE_INT64_T */
+#if CCUNIT_HAVE_LONG_LONG
+#define CCUNIT_HAVE_QUAD_T 1
+typedef long long quad_t; /**< quad_t */
+#endif /* CCUNIT_HAVE_LONG_LONG */
+#endif /* CCUNIT_HAVE_INT64_T */
+#endif /* !CCUNIT_HAVE_QUAD_T */
+
+#ifndef CCUNIT_HAVE_U_QUAD_T
+#ifdef CCUNIT_HAVE_U_INT64_T
+#define CCUNIT_HAVE_U_QUAD_T 1
+typedef u_int64_t u_quad_t; /**< u_quad_t */
+#else /* !CCUNIT_HAVE_U_INT64_T */
+#ifdef CCUNIT_HAVE_LONG_LONG
+#define CCUNIT_HAVE_U_QUAD_T 1
+typedef unsigned long long u_quad_t; /**< u_quad_t */
+#endif /* CCUNIT_HAVE_LONG_LONG */
+#endif /* CCUNIT_HAVE_U_INT64_T */
+#endif /* !CCUNIT_HAVE_U_QUAD_T */
+
+typedef const char* _ccunit_str_t; /**< string type */
+typedef const void* _ccunit_ptr_t; /**< pointer type */
+typedef const void* _ccunit_obj_t; /**< object type */
+
+/*
+ * Asserts that a condition is true. If it isn't it longjmp with
+ * _ccunit_runTest_env.
+ *
+ * @param TYP test value type
+ * @throws _ccunit_runTest_env If condition is false.
+ * @ingroup Assertions
+ */
+#define DCL_CCUNIT_ASSERT_TEST_TYPE(TYP) \
+ extern void ccunit_assert_test_ ## TYP (const char* file, unsigned int line, \
+ bool cond, const char* condstr, \
+ TYP expect, TYP acutal)
+
+DCL_CCUNIT_ASSERT_TEST_TYPE(char);
+DCL_CCUNIT_ASSERT_TEST_TYPE(u_char);
+DCL_CCUNIT_ASSERT_TEST_TYPE(int);
+DCL_CCUNIT_ASSERT_TEST_TYPE(u_int);
+DCL_CCUNIT_ASSERT_TEST_TYPE(short);
+DCL_CCUNIT_ASSERT_TEST_TYPE(u_short);
+DCL_CCUNIT_ASSERT_TEST_TYPE(long);
+DCL_CCUNIT_ASSERT_TEST_TYPE(u_long);
+DCL_CCUNIT_ASSERT_TEST_TYPE(float);
+DCL_CCUNIT_ASSERT_TEST_TYPE(double);
+DCL_CCUNIT_ASSERT_TEST_TYPE(_ccunit_str_t);
+DCL_CCUNIT_ASSERT_TEST_TYPE(_ccunit_ptr_t);
+#if CCUNIT_HAVE_QUAD_T
+DCL_CCUNIT_ASSERT_TEST_TYPE(quad_t);
+#endif
+#if CCUNIT_HAVE_U_QUAD_T
+DCL_CCUNIT_ASSERT_TEST_TYPE(u_quad_t);
+#endif
+
+typedef char* (*ccunit_toString_t)(_ccunit_obj_t);
+
+extern void ccunit_assert_test__ccunit_obj_t (const char* file, unsigned int line,
+ bool cond, const char* condstr,
+ _ccunit_obj_t expect,
+ _ccunit_obj_t acutal,
+ ccunit_toString_t);
+
/** @} */
#endif