aboutsummaryrefslogtreecommitdiff
path: root/src/zenbase
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-12-11 13:09:03 +0100
committerStefan Boberg <[email protected]>2023-12-11 13:09:03 +0100
commit93afeddbc7a5b5df390a29407f5515acd5a70fc1 (patch)
tree6f85ee551aabe20dece64a750c0b2d5d2c5d2d5d /src/zenbase
parentremoved unnecessary SHA1 references (diff)
parentMake sure that PathFromHandle don't hide true error when throwing exceptions ... (diff)
downloadzen-93afeddbc7a5b5df390a29407f5515acd5a70fc1.tar.xz
zen-93afeddbc7a5b5df390a29407f5515acd5a70fc1.zip
Merge branch 'main' of https://github.com/EpicGames/zen
Diffstat (limited to 'src/zenbase')
-rw-r--r--src/zenbase/include/zenbase/zenbase.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/zenbase/include/zenbase/zenbase.h b/src/zenbase/include/zenbase/zenbase.h
index 1df375b28..401bcd088 100644
--- a/src/zenbase/include/zenbase/zenbase.h
+++ b/src/zenbase/include/zenbase/zenbase.h
@@ -197,9 +197,11 @@ char (&ZenArrayCountHelper(const T (&)[N]))[N + 1];
//////////////////////////////////////////////////////////////////////////
#if ZEN_COMPILER_MSC
-# define ZEN_NOINLINE __declspec(noinline)
+# define ZEN_NOINLINE __declspec(noinline)
+# define ZEN_FORCEINLINE [[msvc::forceinline]]
#else
-# define ZEN_NOINLINE __attribute__((noinline))
+# define ZEN_NOINLINE __attribute__((noinline))
+# define ZEN_FORCEINLINE __attribute__((always_inline))
#endif
#if ZEN_PLATFORM_WINDOWS