aboutsummaryrefslogtreecommitdiff
path: root/zencore/include
diff options
context:
space:
mode:
authorMartin Ridgers <[email protected]>2021-11-16 14:34:12 +0100
committerMartin Ridgers <[email protected]>2021-11-16 14:39:00 +0100
commit4832db185369422632ac259d7b8fa9bb6c7915ca (patch)
tree1c49c238e349e1523644f8e673fb7170bc7783d2 /zencore/include
parentMade zenserver-test depend on zenserver as the former spawns the latter (diff)
downloadzen-4832db185369422632ac259d7b8fa9bb6c7915ca.tar.xz
zen-4832db185369422632ac259d7b8fa9bb6c7915ca.zip
Added a ZEN_EXE_STRING_LITERAL for cross-platform path building
Diffstat (limited to 'zencore/include')
-rw-r--r--zencore/include/zencore/zencore.h6
1 files changed, 6 insertions, 0 deletions
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)