Next: , Previous: , Up: Top   [Contents][Index]


9 Utility definitions

Macro: CCTESTS_PC (POINTER_TYPE, POINTER_NAME, EXPRESSION)

Preprocessor macro used to define pointer variables initialised with a cast expression. It expands to:

POINTER_TYPE * POINTER_NAME = (POINTER_TYPE *) (EXPRESSION)

For example, the macro use:

CCTESTS_PC(cctests_descriptor_test_failure_t, C, _C);

expands into:

cctests_descriptor_test_failure_t * C = \
   (cctests_descriptor_test_failure_t *) (_C);
Macro: CCTESTS_UNUSED

Preprocessor macro that is meant to expand into an attribute declaration. If the symbol __GNUC__ is defined, the expansion is:

__attribute__((__unused__))

otherwise the expansion is the empty string.


Next: , Previous: , Up: Top   [Contents][Index]

This document describes version 0.4.1-devel.1 of CCTests.