GCC attributes
[Defines]


Detailed Description

These macros conditionally define GCC attributes for declarations.

They are used in C-Pluff API declarations to enable better optimization and error checking when using GCC. In non-GCC platforms they have empty values.


Defines

#define CP_GCC_PURE
 Declares a function as pure function having no side effects.
#define CP_GCC_NONNULL(...)
 Specifies that some pointer arguments to a function should have non-NULL values.


Define Documentation

#define CP_GCC_PURE

Declares a function as pure function having no side effects.

This attribute is supported in GCC since version 2.96. Such functions can be subject to common subexpression elimination and loop optimization.

#define CP_GCC_NONNULL ( ...   ) 

Specifies that some pointer arguments to a function should have non-NULL values.

Takes a variable length list of argument indexes as arguments. This attribute is supported in GCC since version 3.3. It can be used for enhanced error checking and some optimizations.


Generated on Fri Apr 6 15:40:55 2007 for C-Pluff C API by doxygen 1.5.1