HDK
 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.

Macros

#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

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

Definition at line 185 of file tf.h.