summaryrefslogtreecommitdiffhomepage
path: root/dev/LibSCI/Macros.h
diff options
context:
space:
mode:
authorAmlal <amlal.elmahrouss@icloud.com>2025-02-15 09:33:35 +0100
committerAmlal <amlal.elmahrouss@icloud.com>2025-02-15 09:34:51 +0100
commitfd27d5f1e4176926d613005f30feb209375d97ea (patch)
treea18b18718b77ca9248f56936a3cef0112c24ce51 /dev/LibSCI/Macros.h
parent0db25895168df6ebb9bd8781e3ffd83d3323b398 (diff)
Impl and Patches:
- Private tools directory. - SCI gets new API. - Window Manager library. - Steps version 2. - Patch 'open' command. - ATA.h fixes. Signed-off-by: Amlal <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibSCI/Macros.h')
-rw-r--r--dev/LibSCI/Macros.h25
1 files changed, 17 insertions, 8 deletions
diff --git a/dev/LibSCI/Macros.h b/dev/LibSCI/Macros.h
index e57df6ee..3236176c 100644
--- a/dev/LibSCI/Macros.h
+++ b/dev/LibSCI/Macros.h
@@ -49,17 +49,26 @@ typedef void* VoidPtr;
typedef __UINTPTR_TYPE__ UIntPtr;
typedef char Char;
-typedef VoidPtr SCIObject;
-
-typedef SCIObject IOObject;
-typedef IOObject FSObject;
-typedef SCIObject DLLObject;
-typedef SCIObject ThreadObject;
-typedef SCIObject SocketObject;
-
#ifdef __cplusplus
typedef decltype(nullptr) nullPtr;
typedef nullPtr NullPtr;
+
+#define SCI_COPY_DELETE(KLASS) \
+ KLASS& operator=(const KLASS&) = delete; \
+ KLASS(const KLASS&) = delete;
+
+#define SCI_COPY_DEFAULT(KLASS) \
+ KLASS& operator=(const KLASS&) = default; \
+ KLASS(const KLASS&) = default;
+
+#define SCI_MOVE_DELETE(KLASS) \
+ KLASS& operator=(KLASS&&) = delete; \
+ KLASS(KLASS&&) = delete;
+
+#define SCI_MOVE_DEFAULT(KLASS) \
+ KLASS& operator=(KLASS&&) = default; \
+ KLASS(KLASS&&) = default;
+
#endif
IMPORT_C void _rtl_assert(Bool expr, const Char* origin);