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


9 Helpers

Preprocessor Macro: CCE_PC (TYPE, X, Y)

Pointer–type cast helper. It expands into:

TYPE * X = (TYPE *) (Y)

So, for example, instead of writing:

cce_location_t    L[1];
cce_condition_t * C = cce_condition(L);
ccevents_timeval_invalid_t * K = (ccevents_timeval_invalid_t *) C;

we can write:

cce_location_t    L[1];
cce_condition_t * C = cce_condition(L);
CCE_PC(ccevents_timeval_invalid_t, K, C);

or:

cce_location_t    L[1];
CCE_PC(ccevents_timeval_invalid_t, C, cce_condition(L));
Macro: CCE_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.9.0-devel.3 of CCExceptions.