| [ CCUnit project page ] | [ CCUnit home page ] |
CCUnit configrations. More...
#include <ccunit/config.h>

Go to the source code of this file.
Defines | |
| #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_deleteListCell(), ccunit_deleteListIterator(), ccunit_readSuite(), deleteFuncDef(), deleteTestDef(), destroy(), destroyTestDef(), readSuite(), and readTestFixture().
| #define safe_strdup | ( | s | ) | (!s ? NULL : strdup (s)) |
safty strdup.
Tries not to pass NULL to strdup.
| s | string to duplicate. |
Referenced by ccunit_newTestFixture(), initTestDef(), and newFuncDef().
| #define true (1) |
true
|
|
hosts this site. | Send comments to: CCUnit Developer |
Generated on Mon Aug 16 2010 21:52:38 for CCUnit by 1.7.1
|