Macros and such used primarily to eliminate compiler warnings. More...
Macros | |
#define | UNUSED_PARAM(type, param) {(void) param;} |
#define | UNUSED_VARIABLE(type, var) {(void) var;} |
Macros and such used primarily to eliminate compiler warnings.
Copyright (C) 2017 Global Graphics Software Ltd. All rights reserved. This source code contains the confidential and trade secret information of Global Graphics Software Ltd. It may not be used, copied or distributed for any reason except as set forth in the applicable Global Graphics license agreement.
The intent is that this file should contain macros which are or can be used for various compilers to work around various warnings which the compilers generate.
#define UNUSED_PARAM | ( | type, | |
param | |||
) | {(void) param;} |
Mark an unused formal parameter.
type | The type of the parameter. |
param | The parameter name. |
Creates a dummy usage of an unused parameter for those compilers which do not understand the "unused" pragma.
#define UNUSED_VARIABLE | ( | type, | |
var | |||
) | {(void) var;} |
Creates a dummy usage of an unused variable which is present when required by particular cases of general macros, etc.
type | The type of the parameter. |
var | The variable name. |
It should be called typically at the end of the block where the variable is declared, when the variable has a valid value.