eRPC Generator (erpcgen)  Rev. 1.12.0
NXP Semiconductors
os_config.hpp
1 /*
2  * Copyright (c) 2014, Freescale Semiconductor, Inc.
3  * Copyright 2016 NXP
4  * All rights reserved.
5  *
6  *
7  * SPDX-License-Identifier: BSD-3-Clause
8  */
9 
10 #ifndef _EMBEDDED_RPC__OS_CONFIG_
11 #define _EMBEDDED_RPC__OS_CONFIG_
12 // Definitions
15 
16 // Macro to hide noexcept keyword for Visual C++.
17 #if WIN32
18 #define NOEXCEPT
19 #else
20 #define NOEXCEPT noexcept
21 #endif // NOEXCEPT
22 
23 // Macro to add throw() keyword for MinGW C++.
24 #if __MINGW32__
25 #define NOTHROW throw()
26 #else
27 #define NOTHROW
28 #endif // NOTHROW
29 #endif // _EMBEDDED_RPC__OS_CONFIG_