summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/Config.h
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-22 07:38:52 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-22 07:42:26 +0100
commit36dee4f0d8ea806b2f061ed66a89e812ab007ed2 (patch)
tree8fe0f6895abb96eb40ee390d6411099b4decf489 /src/kernel/NeKit/Config.h
parentf7023f6a08e117d483b5928fd4301062a3384abf (diff)
feat: test: Add `kout` test and rename DeviceInterface to IDevice in KernelKit.
introduce UserPtr and unburden vettable by removing the IVettable helper. Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit/Config.h')
-rw-r--r--src/kernel/NeKit/Config.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/kernel/NeKit/Config.h b/src/kernel/NeKit/Config.h
index 79dbf411..e4e34e2c 100644
--- a/src/kernel/NeKit/Config.h
+++ b/src/kernel/NeKit/Config.h
@@ -191,6 +191,9 @@ template <class Type>
struct FalseResult final {
using ResultType = Type;
using ResultTypeRef = ResultType&;
+ using TypeRef = ResultTypeRef;
+ using ConstType = const Type&;
+ using TypePtr = Type*;
static constexpr bool kValue = false;
};
@@ -199,6 +202,9 @@ template <class Type>
struct TrueResult final {
using ResultType = Type;
using ResultTypeRef = ResultType&;
+ using TypeRef = ResultTypeRef;
+ using ConstType = const Type&;
+ using TypePtr = Type*;
static constexpr bool kValue = true;
};
@@ -207,6 +213,9 @@ template <class Type>
struct PropertyResult final {
using ResultType = Type;
using ResultTypeRef = ResultType&;
+ using TypeRef = ResultTypeRef;
+ using ConstType = const Type&;
+ using TypePtr = Type*;
static constexpr bool kValue = Type::kValue;
};