From ba8ddb24e0ac6c7b1a617519a4bde9970610fbcc Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Mon, 11 Mar 2024 20:59:22 +0100 Subject: Kernel: Important changes, needs to be merged to master. - Add Logon executive. - Adding HCore System Call Interface (inside System.Core.dll) - Add _InOut and _StrictInOut inside HintKit. Signed-off-by: Amlal El Mahrouss Signed-off-by: amlal --- Public/Kits/System.Core/HeapAPI.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Public/Kits/System.Core/HeapAPI.cxx') diff --git a/Public/Kits/System.Core/HeapAPI.cxx b/Public/Kits/System.Core/HeapAPI.cxx index f59e0b1b..2dc7338b 100644 --- a/Public/Kits/System.Core/HeapAPI.cxx +++ b/Public/Kits/System.Core/HeapAPI.cxx @@ -5,7 +5,7 @@ ------------------------------------------- */ #include -#include +#include using namespace HCore; @@ -24,7 +24,10 @@ HHeap* HHeap::Shared() noexcept { void HHeap::Delete(HHeapPtr me) noexcept { HcFreeProcessHeap(kObjectHeap, me); } -SizeT HHeap::Size(HHeapPtr me) noexcept { return HcProcessHeapSize(kObjectHeap, me); } +SizeT HHeap::Size(HHeapPtr me) noexcept { + CA_MUST_PASS(me); + return HcProcessHeapSize(kObjectHeap, me); +} HHeapPtr HHeap::New(const SizeT &sz, const Int32 flags) { SizeT _sz = sz; -- cgit v1.2.3