summaryrefslogtreecommitdiffstats
path: root/core/macros.hh
diff options
context:
space:
mode:
authoruntodesu <kirill@untode.su>2025-06-29 12:04:58 +0500
committeruntodesu <kirill@untode.su>2025-06-29 12:04:58 +0500
commit3b5fab8849f9a7cd3fa6469d3bec04b78784b3ff (patch)
tree96f806c80e7553b1b4f04cb7726945ad41de2366 /core/macros.hh
parent61e5bcef2629e2d68b805a956a96fff264d4f74d (diff)
downloadvoxelius-3b5fab8849f9a7cd3fa6469d3bec04b78784b3ff.tar.bz2
voxelius-3b5fab8849f9a7cd3fa6469d3bec04b78784b3ff.zip
Update core/macros.hh
Diffstat (limited to 'core/macros.hh')
-rw-r--r--core/macros.hh16
1 files changed, 13 insertions, 3 deletions
diff --git a/core/macros.hh b/core/macros.hh
index 9042f49..9a76109 100644
--- a/core/macros.hh
+++ b/core/macros.hh
@@ -2,8 +2,18 @@
#define CORE_MACROS_HH 1
#pragma once
-#define DECLARE_DEFAULT_CTOR(type) \
-public: \
- type(void) = default
+#define DISABLE_COPY_OPERATORS(class_name) \
+public: \
+ explicit class_name(const class_name& other) = delete; \
+ class_name& operator=(const class_name& other) = delete
+
+#define DISABLE_MOVE_OPERATORS(class_name) \
+public: \
+ explicit class_name(class_name&& other) = delete; \
+ class_name& operator=(class_name&& other) = delete
+
+#define DECLARE_DEFAULT_CONSTRUCTOR(class_name) \
+public: \
+ class_name(void) = default
#endif /* CORE_MACROS_HH */