aboutsummaryrefslogtreecommitdiff
path: root/source-common/Macros.hpp
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2022-05-30 17:03:20 -0700
committerrtk0c <[email protected]>2022-05-30 17:03:20 -0700
commite66286ebe30afc9acc4531fc2bea29b7fb924f93 (patch)
treefa6b76554c3eb88bc8f088fbab68e20c40118ca7 /source-common/Macros.hpp
parent366ef5a5450c6e0e680c924c3454943a9ae9814d (diff)
Changeset: 56 Buildsystem cleanup: change to layered structure for different targets
Diffstat (limited to 'source-common/Macros.hpp')
-rw-r--r--source-common/Macros.hpp31
1 files changed, 0 insertions, 31 deletions
diff --git a/source-common/Macros.hpp b/source-common/Macros.hpp
deleted file mode 100644
index a255ada..0000000
--- a/source-common/Macros.hpp
+++ /dev/null
@@ -1,31 +0,0 @@
-#pragma once
-
-#define STRINGIFY_IMPL(text) #text
-#define STRINGIFY(text) STRINGIFY_IMPL(text)
-
-#define CONCAT_IMPL(a, b) a##b
-#define CONCAT(a, b) CONCAT_IMPL(a, b)
-#define CONCAT_3(a, b, c) CONCAT(a, CONCAT(b, c))
-#define CONCAT_4(a, b, c, d) CONCAT(CONCAT(a, b), CONCAT(c, d))
-
-#define UNIQUE_NAME(prefix) CONCAT(prefix, __COUNTER__)
-#define UNIQUE_NAME_LINE(prefix) CONCAT(prefix, __LINE__)
-#define DISCARD UNIQUE_NAME(_discard)
-
-#define UNUSED(x) (void)x;
-
-#define PRINTF_STRING_VIEW(s) (int)s.size(), s.data()
-
-#if defined(_MSC_VER)
-# define UNREACHABLE __assume(0)
-#elif defined(__GNUC__) || defined(__clang__)
-# define UNREACHABLE __builtin_unreachable()
-#else
-# define UNREACHABLE
-#endif
-
-#if _WIN32
-# define PLATFORM_PATH_STR "%ls"
-#else
-# define PLATFORM_PATH_STR "%s"
-#endif