Created
March 20, 2012 01:28
-
-
Save mobius/2129596 to your computer and use it in GitHub Desktop.
forceinline defines
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ifndef FORCEINLINE | |
#if defined(__GNUC__) | |
#define FORCEINLINE __inline __attribute__ ((always_inline)) | |
#elif defined(_MSC_VER) | |
#define FORCEINLINE __forceinline | |
#endif | |
#endif | |
#ifndef NOINLINE | |
#if defined(__GNUC__) | |
#define NOINLINE __attribute__ ((noinline)) | |
#elif defined(_MSC_VER) | |
#define NOINLINE __declspec(noinline) | |
#else | |
#define NOINLINE | |
#endif | |
#endif |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment