[ CCUnit project page ] [ CCUnit home page ]
マクロ定義

CCUnitConfig.h

CCUnit configrations. [詳細]

#include <ccunit/config.h>
CCUnitConfig.hのインクルード依存関係図
このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。

ソースコードを見る。

マクロ定義

#define bool   int
 boolean
#define true   (1)
 true
#define false   (0)
 false
#define safe_free(p)   (!p ? NULL : (free ((void*)p), (p) = NULL))
 safty free memory.
#define safe_strdup(s)   (!s ? NULL : strdup (s))
 safty strdup.

説明

CCUnit configrations.


マクロ定義

#define bool   int

boolean

#define false   (0)

false

#define safe_free (   p  )     (!p ? NULL : (free ((void*)p), (p) = NULL))

safty free memory.

Omits dmalloc's free(NULL) warning.

引数:
p [in/out] pointer to free. and set NULL.

参照元 ccunit_assert_test__ccunit_obj_t(), ccunit_deleteListCell(), ccunit_deleteListIterator(), ccunit_readSuite(), deleteFuncDef(), deleteTestDef(), destroy(), destroyTestDef(), readSuite(), と readTestCase().

#define safe_strdup (   s  )     (!s ? NULL : strdup (s))

safty strdup.

Tries not to pass NULL to strdup.

引数:
s string to duplicate.
戻り値:
duplicated string, or NULL when error occured.

参照元 ccunit_newTestCase(), ccunit_newTestFixture(), initTestDef(), と newFuncDef().

#define true   (1)

true

SourceForge.jp hosts this site. Send comments to: CCUnit Developer