summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Core/HeapAPI.hxx
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-15 08:03:35 +0100
committerAmlal El Mahrouss <amlal@el-mahrouss-logic.com>2024-03-15 08:03:35 +0100
commitb3e76bf866b4223390585589786600475c9fdcae (patch)
tree7b10c496e94aa98dedf441f67fb39d0aaa7fbda9 /Public/Kits/System.Core/HeapAPI.hxx
parent159d312c0dd3c02995950270e173cc10ade273cf (diff)
API: Inconsitency fix.
Signed-off-by: Amlal El Mahrouss <amlal@el-mahrouss-logic.com>
Diffstat (limited to 'Public/Kits/System.Core/HeapAPI.hxx')
-rw-r--r--Public/Kits/System.Core/HeapAPI.hxx34
1 files changed, 18 insertions, 16 deletions
diff --git a/Public/Kits/System.Core/HeapAPI.hxx b/Public/Kits/System.Core/HeapAPI.hxx
index 9391bc4f..f50ff6f7 100644
--- a/Public/Kits/System.Core/HeapAPI.hxx
+++ b/Public/Kits/System.Core/HeapAPI.hxx
@@ -6,16 +6,17 @@
#pragma once
-#include <CompilerKit/CompilerKit.hpp>
+#include <CompilerKit/CompilerKit.hxx>
#include <NewKit/Defines.hpp>
/// @brief SOM class, translated to C++
using namespace HCore;
-class HMemoryException;
+namespace System {
+class MemoryException;
-typedef VoidPtr HHeapPtr;
+typedef VoidPtr HeapPtr;
enum {
kHeapExpandable = 2,
@@ -25,32 +26,32 @@ enum {
kHeapNoFlags = 0
};
-class HHeap final {
+class Heap final {
private:
- explicit HHeap();
+ explicit Heap();
public:
- ~HHeap();
+ ~Heap();
public:
- HCORE_COPY_DEFAULT(HHeap);
+ HCORE_COPY_DEFAULT(Heap);
public:
- static HHeap *Shared() noexcept;
+ static Heap *Shared() noexcept;
public:
- void Delete(HHeapPtr me) noexcept;
- SizeT Size(HHeapPtr me) noexcept;
- HHeapPtr New(const SizeT &sz, const Int32 flags = kHeapNoFlags);
+ void Delete(HeapPtr me) noexcept;
+ SizeT Size(HeapPtr me) noexcept;
+ HeapPtr New(const SizeT &sz, const Int32 flags = kHeapNoFlags);
};
-class HMemoryException final {
+class MemoryException final {
public:
- explicit HMemoryException() = default;
- ~HMemoryException() = default;
+ explicit MemoryException() = default;
+ ~MemoryException() = default;
public:
- HCORE_COPY_DEFAULT(HMemoryException);
+ HCORE_COPY_DEFAULT(MemoryException);
public:
const char *Name();
@@ -60,5 +61,6 @@ class HMemoryException final {
const char *mReason{"HeapAPI: Memory Exception!"};
private:
- friend HHeap;
+ friend Heap;
};
+} // namespace System \ No newline at end of file