Created
November 12, 2019 23:28
-
-
Save osiewicz/a158c4389fe3dd2e4649e785be806938 to your computer and use it in GitHub Desktop.
CTRE issue #78 patch to disable force inlining
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
diff --git a/single-header/ctre.hpp b/single-header/ctre.hpp | |
index 2a5accb..2c15a0b 100644 | |
--- a/single-header/ctre.hpp | |
+++ b/single-header/ctre.hpp | |
@@ -462,7 +462,8 @@ template <typename CharT, size_t N> basic_fixed_string(basic_fixed_string<CharT, | |
#ifdef _MSC_VER | |
#define CTLL_FORCE_INLINE __forceinline | |
#else | |
-#define CTLL_FORCE_INLINE __attribute__((always_inline)) | |
+//#define CTLL_FORCE_INLINE __attribute__((always_inline)) | |
+#define CTLL_FORCE_INLINE | |
#endif | |
namespace ctll { | |
@@ -1333,7 +1334,8 @@ struct assert_end { }; | |
#define CTRE_FORCE_INLINE __forceinline | |
#define CTRE_FLATTEN | |
#else | |
-#define CTRE_FORCE_INLINE inline __attribute__((always_inline)) | |
+#define CTRE_FORCE_INLINE inline | |
+//inline __attribute__((always_inline)) | |
#define CTRE_FLATTEN __attribute__((flatten)) | |
#endif | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment