summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/Vet.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/NeKit/Vet.h')
-rw-r--r--src/kernel/NeKit/Vet.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/kernel/NeKit/Vet.h b/src/kernel/NeKit/Vet.h
new file mode 100644
index 00000000..d4c1060f
--- /dev/null
+++ b/src/kernel/NeKit/Vet.h
@@ -0,0 +1,34 @@
+
+/* ========================================
+
+ Copyright (C) 2024-2025, Amlal El Mahrouss, licensed under the Apache 2.0 license.
+
+======================================== */
+
+#pragma once
+
+#include <CompilerKit/CompilerKit.h>
+#include <NeKit/Config.h>
+
+#define NE_VETTABLE : public IVet
+
+namespace Kernel {
+struct IVet {
+ IVet() = default;
+ virtual ~IVet() = default;
+
+ NE_COPY_DEFAULT(IVet)
+
+ operator bool() = delete;
+};
+
+template <typename T>
+struct Vettable final {
+ static constexpr bool kValue = false;
+};
+
+template <>
+struct Vettable<IVet> final {
+ static constexpr bool kValue = true;
+};
+} // namespace Kernel \ No newline at end of file