Re: unused variables
Posted: Thu Aug 27, 2015 15:11
Thanx!
The official forum for CEGUI
http://cegui.org.uk/forum/
Code: Select all
void func(AwesomeClass& /* param1 */)
{
// Some code that doesn't use param1
...
}
Code: Select all
bool is_success(myFunc());
assert(is_success)
Code: Select all
void myFunc(int myVar)
{
#if defined SOMETHING
cout << myVar;
#endif
}
Code: Select all
void myFunc(int myVar)
{
#if defined SOMETHING
cout << myVar;
#else
CEGUI_UNUSED(myVar);
#endif
}