Make B3_FORCE_INLINE compatible with non-VC++ compilers

This commit is contained in:
Luke Benstead 2017-04-07 13:20:57 +01:00
parent 0af16fae5a
commit 3dee299ba9

View File

@ -116,7 +116,13 @@ typedef float float32;
#define B3_MiB(n) (1024 * B3_KiB(n)) #define B3_MiB(n) (1024 * B3_KiB(n))
#define B3_GiB(n) (1024 * B3_MiB(n)) #define B3_GiB(n) (1024 * B3_MiB(n))
#define B3_FORCE_INLINE __forceinline #ifndef _MSC_VER
#ifdef __cplusplus
#define B3_FORCE_INLINE inline
#else
#define B3_FORCE_INLINE
#endif
#endif
#define B3_PROFILE(name) b3ProfileScope scope(name) #define B3_PROFILE(name) b3ProfileScope scope(name)