aboutsummaryrefslogtreecommitdiff
path: root/src/common.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-01-12 12:59:09 +0000
committergingerBill <bill@gingerbill.org>2023-01-12 12:59:09 +0000
commitb470ceb4705477ef42a1efc2c8beb5e3ceef2f88 (patch)
treeeab473b3853eb6f147b4c3033701537275a24aec /src/common.cpp
parentc15db051999e51f5c8ecc45fb084e6fb76c9b5c2 (diff)
Correct `mpsc_dequeue`
Diffstat (limited to 'src/common.cpp')
-rw-r--r--src/common.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/common.cpp b/src/common.cpp
index 6a6019482..68d99ef02 100644
--- a/src/common.cpp
+++ b/src/common.cpp
@@ -43,11 +43,21 @@ gb_internal void debugf(char const *fmt, ...);
#error Odin on Windows requires a 64-bit build-system. The 'Developer Command Prompt' for VS still defaults to 32-bit shell. The 64-bit shell can be found under the name 'x64 Native Tools Command Prompt' for VS. For more information, please see https://odin-lang.org/docs/install/#for-windows
#endif
+template <typename T>
+struct TypeIsPointer {
+ enum {value = false};
+};
+
+template <typename T>
+struct TypeIsPointer<T *> {
+ enum {value = true};
+};
+
#include "unicode.cpp"
#include "array.cpp"
#include "threading.cpp"
-#include "queue.cpp"
#include "common_memory.cpp"
+#include "queue.cpp"
#include "string.cpp"
#include "range_cache.cpp"