diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-20 11:28:39 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-20 11:28:39 +0100 |
| commit | 35b6093dad9035a36af3171982b914a89335d452 (patch) | |
| tree | 1b6e847e8efffe04c9f741b2ab06f15e4e4d3987 /src/kernel/NeKit/Vettable.h | |
| parent | d0fb2f563bf93917d31e5c589a3896fe17e21993 (diff) | |
chore: kernel: apply vettable pattern to process structure.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit/Vettable.h')
| -rw-r--r-- | src/kernel/NeKit/Vettable.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/kernel/NeKit/Vettable.h b/src/kernel/NeKit/Vettable.h index d79aaa0b..8290b318 100644 --- a/src/kernel/NeKit/Vettable.h +++ b/src/kernel/NeKit/Vettable.h @@ -16,11 +16,6 @@ public \ ::Kernel::IVettable -#define NE_NOT_VETTABLE \ - final: \ - public \ - ::Kernel::INotVettable - namespace Kernel { struct IVettable { explicit IVettable() = default; @@ -31,12 +26,14 @@ struct IVettable { template <class Type> struct Vettable final { - static constexpr bool kValue = false; + using ResultType = Type; + + static constexpr BOOL kValue = NO; }; template <> struct Vettable<IVettable> final { - static constexpr bool kValue = true; + static constexpr BOOL kValue = YES; }; template <class Type> @@ -48,4 +45,4 @@ concept IsVettable = requires() { }; } // namespace Kernel -#endif // !__NE_KIT_VETTABLE_H__
\ No newline at end of file +#endif // !__NE_KIT_VETTABLE_H__ |
