CCUnit
2.1
A C Unit Testing Library
|
CCUnit configrations. More...
#include <ccunit/config.h>
Go to the source code of this file.
Macros | |
#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. |
Referenced by ccunit_assert_test__ccunit_obj_t(), ccunit_deleteList(), ccunit_deleteListCell(), ccunit_deleteListIterator(), ccunit_deleteTestFailure(), ccunit_deleteTestFunc(), ccunit_readSuite(), deleteFuncDef(), deleteTestDef(), destroy(), destroyTestDef(), readSuite(), and readTestCase().
#define safe_strdup | ( | s | ) | (!s ? NULL : strdup (s)) |
safty strdup.
Tries not to pass NULL to strdup.
s | string to duplicate. |
Referenced by ccunit_newTestCase(), ccunit_newTestFailure(), ccunit_newTestFunc(), ccunit_newTestSuite(), initTestDef(), and newFuncDef().
#define true (1) |
true
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Sat Jul 13 2013 15:09:11 for CCUnit by
![]() |