From 49c0ed297f7ced606d44830b3626e8aa9e9996a0 Mon Sep 17 00:00:00 2001 From: Morph <39850852+Morph1984@users.noreply.github.com> Date: Tue, 14 Jun 2022 07:18:12 -0400 Subject: [PATCH] common_funcs: Add CITRA_NO_INLINE --- src/common/common_funcs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/common_funcs.h b/src/common/common_funcs.h index 1420675d4..446965e90 100644 --- a/src/common/common_funcs.h +++ b/src/common/common_funcs.h @@ -28,6 +28,12 @@ #define FORCE_INLINE inline __attribute__((always_inline)) #endif +#ifdef _MSC_VER +#define CITRA_NO_INLINE __declspec(noinline) +#else +#define CITRA_NO_INLINE __attribute__((noinline)) +#endif + #ifndef _MSC_VER #ifdef ARCHITECTURE_x86_64