diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-11-21 03:30:40 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-21 03:30:40 -0500 |
| commit | e3fa27827e7647a0ecc466f4d92097fe48fbbb43 (patch) | |
| tree | 33ba30655f555d37e3c970707b27413936e5a9ad /dev/kernel/NeKit/Function.h | |
| parent | c739255b48b3a5b2e184ca1a637f9f1f95c978ff (diff) | |
| parent | efefa7221a3fea3636a64f2bf067e2af75626f34 (diff) | |
Merge pull request #79 from nekernel-org/devv0.0.61
Kernel: OpenHeFS fixes and new components.
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__ |
