aboutsummaryrefslogtreecommitdiff
path: root/core/src/Utils
diff options
context:
space:
mode:
Diffstat (limited to 'core/src/Utils')
-rw-r--r--core/src/Utils/Macros.hpp2
-rw-r--r--core/src/Utils/Vector.hpp6
2 files changed, 7 insertions, 1 deletions
diff --git a/core/src/Utils/Macros.hpp b/core/src/Utils/Macros.hpp
index ab846f4..3ba8261 100644
--- a/core/src/Utils/Macros.hpp
+++ b/core/src/Utils/Macros.hpp
@@ -3,7 +3,7 @@
#define CONCAT_IMPL(a, b) a##b
#define CONCAT(a, b) CONCAT_IMPL(a, b)
-#define UNIQUE_NAME(prefix) CONCAT(prefix, __LINE__)
+#define UNIQUE_NAME(prefix) CONCAT(prefix, __COUNTER__)
#if defined(_MSC_VER)
# define UNREACHABLE __assume(false)
diff --git a/core/src/Utils/Vector.hpp b/core/src/Utils/Vector.hpp
new file mode 100644
index 0000000..372d484
--- /dev/null
+++ b/core/src/Utils/Vector.hpp
@@ -0,0 +1,6 @@
+#pragma once
+
+struct Vec2i {
+ int x = 0;
+ int y = 0;
+};