diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 09:09:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 09:25:16 +0100 |
| commit | 463e7472e737fb8259a30304e729772041ea5498 (patch) | |
| tree | 0cd4aee9d7d0eea2d5279f76bf37fd6887fbc65d /dev/kernel/NeKit/Function.h | |
| parent | c464e5800961c809c73d4180f8a66885b53c63d7 (diff) | |
feat: kernel: NeKit improvements and new TOML file.
feat: frameworks: CoreFoundation improvements and new KTest framework.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'dev/kernel/NeKit/Function.h')
| -rw-r--r-- | dev/kernel/NeKit/Function.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/dev/kernel/NeKit/Function.h b/dev/kernel/NeKit/Function.h index 45b1a5af..70242bc3 100644 --- a/dev/kernel/NeKit/Function.h +++ b/dev/kernel/NeKit/Function.h @@ -4,13 +4,15 @@ ======================================== */ -#ifndef _INC_FUNCTION_H_ -#define _INC_FUNCTION_H_ +#pragma once #include <NeKit/Defines.h> #include <NeKit/ErrorOr.h> namespace Kernel { +/// ================================================================================ +/// @brief Function wrapper class. +/// ================================================================================ template <typename T, typename... Args> class Function final { public: @@ -40,11 +42,10 @@ class Function final { private: T(*fFn) - (Args... args); + (Args... args){nullptr}; }; template <typename T, typename... Args> using FunctionOr = ErrorOr<Function<T, Args...>>; } // namespace Kernel -#endif // !_INC_FUNCTION_H__ |
