Harlequin RIP SDK

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;}
 

Detailed Description

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.

Macro Definition Documentation

◆ UNUSED_PARAM

#define UNUSED_PARAM (   type,
  param 
)    {(void) param;}

Mark an unused formal parameter.

Parameters
typeThe type of the parameter.
paramThe parameter name.

Creates a dummy usage of an unused parameter for those compilers which do not understand the "unused" pragma.

◆ UNUSED_VARIABLE

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

Parameters
typeThe type of the parameter.
varThe 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.