diff options
| author | Stefan Boberg <[email protected]> | 2023-11-21 13:42:53 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-21 13:42:53 +0100 |
| commit | 3369e345678aaa4199b76a099c750ed00754c548 (patch) | |
| tree | 6d202aeb7d312acddd6c9da58b8d1993a3adfffc /src/zenbase/include | |
| parent | fix bad merge (diff) | |
| download | zen-3369e345678aaa4199b76a099c750ed00754c548.tar.xz zen-3369e345678aaa4199b76a099c750ed00754c548.zip | |
basic ZEN_ASSERT_FORMAT implementation (#556)
includes porting some compact binary builder code to use it since it had vestiges of the UE-side asserts
Diffstat (limited to 'src/zenbase/include')
| -rw-r--r-- | src/zenbase/include/zenbase/zenbase.h | 6 |
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 |