summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2023-01-21 12:43:53 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2023-01-21 12:43:53 +0100
commitabaf47c7b8fec08803d7b2deab3a4f13c2dfcb29 (patch)
treefcdb5b776fbe671c112d82edf3d27378b96ff1eb
parentdd3c3fd8d745691b7da147208dfcd8dee2a49150 (diff)
Add CTOR_ prefix to REG macro helpers
-rw-r--r--src/ctor.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ctor.h b/src/ctor.h
index ab486a5..1b6c560 100644
--- a/src/ctor.h
+++ b/src/ctor.h
@@ -235,10 +235,10 @@ int reg(ctor::external_configurations (*cb)(const ctor::settings&),
const std::source_location location = std::source_location::current());
// Convenience macro - ugly but keeps things simple(r)
-#define CONCAT(a, b) CONCAT_INNER(a, b)
-#define CONCAT_INNER(a, b) a ## b
-#define UNIQUE_NAME(base) CONCAT(base, __LINE__)
-#define REG(cb) namespace { int UNIQUE_NAME(unique) = reg(cb); }
+#define CTOR_CONCAT(a, b) CTOR_CONCAT_INNER(a, b)
+#define CTOR_CONCAT_INNER(a, b) a ## b
+#define CTOR_UNIQUE_NAME(base) CTOR_CONCAT(base, __LINE__)
+#define REG(cb) namespace { int CTOR_UNIQUE_NAME(unique) = reg(cb); }
// Predefined configuration keys
namespace cfg