From 4832db185369422632ac259d7b8fa9bb6c7915ca Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Tue, 16 Nov 2021 14:34:12 +0100 Subject: Added a ZEN_EXE_STRING_LITERAL for cross-platform path building --- zencore/include/zencore/zencore.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'zencore/include') diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h index 195662715..0b3b9e6a4 100644 --- a/zencore/include/zencore/zencore.h +++ b/zencore/include/zencore/zencore.h @@ -233,6 +233,12 @@ char (&ZenArrayCountHelper(const T (&)[N]))[N + 1]; # define ZEN_NOINLINE __attribute__((noinline)) #endif +#if ZEN_PLATFORM_WINDOWS +# define ZEN_EXE_SUFFIX_LITERAL ".exe" +#else +# define ZEN_EXE_SUFFIX_LITERAL +#endif + #define ZEN_UNUSED(...) ((void)__VA_ARGS__) #define ZEN_NOT_IMPLEMENTED(...) ZEN_ASSERT(false, __VA_ARGS__) #define ZENCORE_API // Placeholder to allow DLL configs in the future (maybe) -- cgit v1.2.3