diff options
| author | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-19 22:50:16 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@el-mahrouss-logic.com> | 2024-03-19 22:50:16 +0100 |
| commit | a0f82d57976648c5bfcf165b2e304d2a4c8fb0c7 (patch) | |
| tree | c24cd3e850a9fc47b352ac8efa50a93b28388925 /Public/Kits/System.Core/Defs.hxx | |
| parent | de413aa50bac1342e4ac8c7a66697ea3b551c2e4 (diff) | |
Kernel:Secret: Fix String class.
Improve kernel APIs.
Diffstat (limited to 'Public/Kits/System.Core/Defs.hxx')
| -rw-r--r-- | Public/Kits/System.Core/Defs.hxx | 17 |
1 files changed, 9 insertions, 8 deletions
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 <System.Core/Hint.hxx> -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 |
