CTR Pia  4.11.3
Game Communication Engine
macros.h
1 /*---------------------------------------------------------------------------*
2  Project: Pia
3  File: macros.h
4 
5  Copyright Nintendo. All rights reserved.
6 
7  These coded instructions, statements, and computer programs contain
8  proprietary information of Nintendo of America Inc. and/or Nintendo
9  Company Ltd., and are protected by Federal copyright law. They may
10  not be disclosed to third parties or copied or duplicated in any form,
11  in whole or in part, without the prior written consent of Nintendo.
12  *---------------------------------------------------------------------------*/
13 
14 
15 #pragma once
16 
17 #include <pia/settings.h>
18 
19 
20 /*!
21 @brief Defines a macro for suppressing warnings generated for unused variables.
22 */
23 #define NN_PIA_DUMMY_PARAM(var) ((void)&var)
24 
25 
26 /*!
27 @brief Defines a macro for suppressing warnings for unused variables, but it only functions in release builds.
28 
29 This is provided to reduce the complexity of warnings for cases such as when a variable is only used in an assert statement.
30 
31 */
32 #if NN_PIA_RELEASE
33 #define NN_PIA_DUMMY_PARAM_IN_RELEASE(var) ((void)&var)
34 #else
35 #define NN_PIA_DUMMY_PARAM_IN_RELEASE(var)
36 #endif