All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
tf.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.


#define TF_UNUSED(x)   (void) x

Detailed Description

A file containing basic constants and definitions.

Definition in file tf.h.

Macro Definition Documentation

#define TF_UNUSED (   x)    (void) x

Stops compiler from producing unused argument or variable warnings. This is useful mainly in C, because in C++ you can just leave the variable unnamed. However, there are situations where this can be useful even in C++, such as

MyClass::Method( int foo )
#if defined(__APPLE__)
TF_UNUSED( foo );
// do something that doesn't need foo...
// do something that needs foo

Definition at line 185 of file tf.h.