Defines
xapian/attributes.h File Reference

Compiler attribute macros. More...

Defines

#define XAPIAN_CONST_FUNCTION
 A function which does not examine any values except its arguments and has no effects except its return value.
#define XAPIAN_PURE_FUNCTION
 Like XAPIAN_CONST_FUNCTION, but such a function can also examine global memory, perhaps via pointer or reference parameters.

Detailed Description

Compiler attribute macros.


Define Documentation

A function which does not examine any values except its arguments and has no effects except its return value.

This means the compiler can perform CSE (common subexpression elimination) on calls to such a function with the same arguments, and also completely eliminate calls to this function when the return value isn't used.


Documentation for Xapian (version 1.3.1).
Generated on Fri May 3 2013 by Doxygen 1.7.6.1.