We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f338f50 commit 48c611cCopy full SHA for 48c611c
nall/nall/platform.hpp
@@ -159,8 +159,13 @@ namespace nall {
159
#define MSG_NOSIGNAL 0
160
#endif
161
162
-#if defined(COMPILER_CLANG) || defined(COMPILER_GCC)
+#if defined(COMPILER_CLANG)
163
#define no_optimize __attribute__((optnone))
164
+#elif defined(COMPILER_GCC)
165
+ #define no_optimize __attribute__((optimize("O0")))
166
+#endif
167
+
168
+#if defined(COMPILER_CLANG) || defined(COMPILER_GCC)
169
#define NALL_NOINLINE __attribute__((noinline))
170
#define alwaysinline inline __attribute__((always_inline))
171
#define NALL_USED __attribute__((used))
0 commit comments