From a0f82d57976648c5bfcf165b2e304d2a4c8fb0c7 Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 19 Mar 2024 22:50:16 +0100 Subject: Kernel:Secret: Fix String class. Improve kernel APIs. --- Public/Kits/System.Core/Defs.hxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'Public/Kits/System.Core/Defs.hxx') diff --git a/Public/Kits/System.Core/Defs.hxx b/Public/Kits/System.Core/Defs.hxx index 9a17d571..84bdc7bb 100644 --- a/Public/Kits/System.Core/Defs.hxx +++ b/Public/Kits/System.Core/Defs.hxx @@ -88,6 +88,7 @@ typedef bool BOOL; #define CA_STATIC static #define CA_INLINE inline +#define CA_CONST const #ifdef __cplusplus #define CA_CONSTEXPR constexpr @@ -110,19 +111,19 @@ enum HcProcessCall { #include -class Exception { +class SystemException { public: - explicit Exception() = default; - virtual ~Exception() = default; + explicit SystemException() = default; + virtual ~SystemException() = default; public: - HCORE_COPY_DEFAULT(Exception); + HCORE_COPY_DEFAULT(SystemException); public: - const char *Name(); - const char *Reason(); + virtual const char *Name() = 0; + virtual const char *Reason() = 0; private: const char *mReason{ - "System.Core: System Exception: Catastrophic failure!"}; -}; + "System.Core: SystemException: Catastrophic failure!"}; +}; \ No newline at end of file -- cgit v1.2.3