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


8 Utility definitions

Macro: CCMEM_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:

CCMEM_PC(ccmem_descriptor_test_failure_t, C, _C);

expands into:

ccmem_descriptor_test_failure_t * C = \
   (ccmem_descriptor_test_failure_t *) (_C);
Macro: CCMEM_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.2.2-devel.3 of CCMemory.