blob: b6f012841ba36a72951c6a13fae9b1503b5de0ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#ifndef __FORCEINLINE_HPP__
#define __FORCEINLINE_HPP__
#if defined(__GNUC__)
# define etcpak_force_inline __attribute__((always_inline)) inline
#elif defined(_MSC_VER)
# define etcpak_force_inline __forceinline
#else
# define etcpak_force_inline inline
#endif
#if defined(__GNUC__)
# define etcpak_no_inline __attribute__((noinline))
#elif defined(_MSC_VER)
# define etcpak_no_inline __declspec(noinline)
#else
# define etcpak_no_inline
#endif
#endif
|