diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-12 08:17:05 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-12 08:17:05 +0100 |
| commit | 701ab62ee9e3d723e01223f38ebd4d1804f6f2ad (patch) | |
| tree | c605a779279e37bb5a9a4038f900e1a43b575a56 /dev/LibSCI | |
| parent | 22b7b4427fd01384aad23b4669427aab75d32a42 (diff) | |
ADD: Close to a final AHCI product.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'dev/LibSCI')
| -rw-r--r-- | dev/LibSCI/GPU.h | 4 | ||||
| -rw-r--r-- | dev/LibSCI/Macros.h | 8 | ||||
| -rw-r--r-- | dev/LibSCI/SCI.h | 2 |
3 files changed, 8 insertions, 6 deletions
diff --git a/dev/LibSCI/GPU.h b/dev/LibSCI/GPU.h index 6ee937f5..fee621e6 100644 --- a/dev/LibSCI/GPU.h +++ b/dev/LibSCI/GPU.h @@ -10,7 +10,7 @@ Purpose: GFX System Calls. #ifndef SCIKIT_GPU_H #define SCIKIT_GPU_H -#include <SCI.h> +#include <LibSCI/SCI.h> struct GPUCmdBuffer; @@ -31,7 +31,7 @@ struct GPUCmdBuffer final Bool isGPGPUData() { - return !this->BufferFirst && this->IsGPGPUData; + return this->isValid() && !this->BufferFirst && this->IsGPGPUData; } Bool isValid() diff --git a/dev/LibSCI/Macros.h b/dev/LibSCI/Macros.h index 62d522c9..e57df6ee 100644 --- a/dev/LibSCI/Macros.h +++ b/dev/LibSCI/Macros.h @@ -14,7 +14,7 @@ Purpose: LibSCI Macros header. /// @brief Macros and core types. /***********************************************************************************/ -#include <CompilerHint.h> +#include <LibSCI/CompilerHint.h> #define ATTRIBUTE(X) __attribute__((X)) @@ -29,6 +29,8 @@ Purpose: LibSCI Macros header. #define FILE_MAX_LEN 256 typedef bool Bool; +typedef bool BOOL; +typedef bool Boolean; typedef void Void; typedef __UINT64_TYPE__ UInt64; @@ -57,10 +59,10 @@ typedef SCIObject SocketObject; #ifdef __cplusplus typedef decltype(nullptr) nullPtr; -typedef decltype(nullptr) NullPtr; +typedef nullPtr NullPtr; #endif -EXTERN_C void _rtl_assert(Bool expr, const Char* origin); +IMPORT_C void _rtl_assert(Bool expr, const Char* origin); #define MUST_PASS(X) _rtl_assert(X, __FILE__) diff --git a/dev/LibSCI/SCI.h b/dev/LibSCI/SCI.h index 19bd1aa1..ca77c515 100644 --- a/dev/LibSCI/SCI.h +++ b/dev/LibSCI/SCI.h @@ -10,7 +10,7 @@ Purpose: System Calls. #ifndef SCIKIT_FOUNDATION_H
#define SCIKIT_FOUNDATION_H
-#include <Macros.h>
+#include <LibSCI/Macros.h>
// ------------------------------------------------------------------------------------------ //
/// @brief Dynamic Loader API.
|
