summaryrefslogtreecommitdiffhomepage
path: root/dev/LibSCI/Macros.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:13:48 +0100
committerAmlal El Mahrouss <amlal.elmahrouss@icloud.com>2025-03-23 19:15:17 +0100
commita13e1c0911c0627184bc38f18c7fdda64447b3ad (patch)
tree073a62c09bf216e85a3f310376640fa1805147f9 /dev/LibSCI/Macros.h
parent149fa096eb306d03686b3b67e813cf1a78e08cd0 (diff)
meta(kernel): Reworked repository's filesystem structure.
Removing useless parts of the project too. Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibSCI/Macros.h')
-rw-r--r--dev/LibSCI/Macros.h93
1 files changed, 0 insertions, 93 deletions
diff --git a/dev/LibSCI/Macros.h b/dev/LibSCI/Macros.h
deleted file mode 100644
index 4e4bff9a..00000000
--- a/dev/LibSCI/Macros.h
+++ /dev/null
@@ -1,93 +0,0 @@
-/* -------------------------------------------
-
-Copyright (C) 2024-2025, Amlal EL Mahrouss, all rights reserved.
-
-File: Macros.h
-Purpose: LibSCI Macros header.
-
-------------------------------------------- */
-
-#pragma once
-
-/***********************************************************************************/
-/// @file LibSCI/Macros.h
-/// @brief Macros and core types.
-/***********************************************************************************/
-
-#include <LibSCI/CompilerHint.h>
-
-#define ATTRIBUTE(X) __attribute__((X))
-
-#define IMPORT_CXX extern "C++"
-#define IMPORT_C extern "C"
-
-#define DEPRECATED ATTRIBUTE(deprecated)
-
-#define EXIT_SUCCESS 0
-#define EXIT_FAILURE 1
-
-#define FILE_MAX_LEN 256
-
-#ifndef BOOL
-#define BOOL bool
-#endif
-
-typedef bool Bool;
-typedef bool Boolean;
-typedef void Void;
-
-#ifndef __cplusplus
-#define true 1
-#define false 0
-#endif
-
-#define YES true
-#define NO false
-
-typedef __UINT64_TYPE__ UInt64;
-typedef __UINT32_TYPE__ UInt32;
-typedef __UINT16_TYPE__ UInt16;
-typedef __UINT8_TYPE__ UInt8;
-
-typedef __SIZE_TYPE__ SizeT;
-
-typedef __INT64_TYPE__ SInt64;
-typedef __INT32_TYPE__ SInt32;
-typedef __INT16_TYPE__ SInt16;
-typedef __INT8_TYPE__ SInt8;
-
-typedef void* VoidPtr;
-typedef __UINTPTR_TYPE__ UIntPtr;
-typedef char Char;
-
-#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);
-
-#define MUST_PASS(X) _rtl_assert(X, __FILE__)
-
-#ifndef ARRAY_SIZE
-#define ARRAY_SIZE(a) \
- (((sizeof(a) / sizeof(*(a))) / \
- (static_cast<SizeT>(!(sizeof(a) % sizeof(*(a)))))))
-#endif \ No newline at end of file