aboutsummaryrefslogtreecommitdiff
path: root/core/src/Utils
diff options
context:
space:
mode:
authorrtk0c <[email protected]>2021-04-24 17:11:44 -0700
committerrtk0c <[email protected]>2021-04-24 17:11:44 -0700
commite7afe82857ac3ccc3e10b40cee60ea94cc59232b (patch)
tree15adcffa5495e98cb309255468e016198f1719ac /core/src/Utils
parentae6364ebb08b4f6934a38e8945518f7b7c7c1875 (diff)
Second draft of graph rebuild
- Change working set approach to basic BFS with dependency (input pins) counting - TODO convert evaluator to use depths
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;
+};