[ CCUnit project page ] |  | [ CCUnit home page ]

Defines

# CCUnitConfig.h File Reference

CCUnit configrations. More...

`#include <ccunit/config.h>`
Include dependency graph for CCUnitConfig.h:
This graph shows which files directly or indirectly include this file:

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.

## Detailed Description

CCUnit configrations.

## Define Documentation

#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.

Parameters:

  | 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.

Parameters:

  | s | string to duplicate.

Returns:
  duplicated string, or NULL when error occured.

Referenced by ccunit_newTestFixture(), initTestDef(), and newFuncDef().

#define true (1)

true

| hosts this site. |  | Send comments to: CCUnit Developer |