diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-11 08:51:02 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2025-02-11 08:51:02 +0100 |
| commit | f511ab3c1e840e1568dec67c4988f42e67d527b7 (patch) | |
| tree | 7ee9decdcc95c43d41d6d6e289e8bc4cc116888f /dev/LibSCI/Macros.h | |
| parent | 5a221a0ba51b55e671efac8f8708a4ab28414816 (diff) | |
ADD: LibCF
Diffstat (limited to 'dev/LibSCI/Macros.h')
| -rw-r--r-- | dev/LibSCI/Macros.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/dev/LibSCI/Macros.h b/dev/LibSCI/Macros.h index 5f4253de..62d522c9 100644 --- a/dev/LibSCI/Macros.h +++ b/dev/LibSCI/Macros.h @@ -54,3 +54,18 @@ typedef IOObject FSObject; typedef SCIObject DLLObject; typedef SCIObject ThreadObject; typedef SCIObject SocketObject; + +#ifdef __cplusplus +typedef decltype(nullptr) nullPtr; +typedef decltype(nullptr) NullPtr; +#endif + +EXTERN_C void _rtl_assert(Bool expr, const Char* origin); + +#define MUST_PASS(X) _rtl_assert(X, __FILE__) + +#ifndef ARRAY_SIZE +#define ARRAY_SIZE(a) \ + (((sizeof(a) / sizeof(*(a))) / \ + (static_cast<Kernel::Size>(!(sizeof(a) % sizeof(*(a))))))) +#endif
\ No newline at end of file |
