summaryrefslogtreecommitdiffhomepage
path: root/src/libDDK/DriverKit/c++
diff options
context:
space:
mode:
authorAmlal El Mahrouss <amlal@nekernel.org>2025-12-18 19:38:22 +0100
committerAmlal El Mahrouss <amlal@nekernel.org>2025-12-18 19:38:22 +0100
commitf651858b579138d5df0f89363879825513ece227 (patch)
tree7f9fc7f18d7948e4c969b3901e9ca6559f4941d9 /src/libDDK/DriverKit/c++
parented6d2f6007b572b907e3cb11b4303c13d1572c9c (diff)
chore: MKFS library improvements on documentation.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/libDDK/DriverKit/c++')
-rw-r--r--src/libDDK/DriverKit/c++/driver_base.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libDDK/DriverKit/c++/driver_base.h b/src/libDDK/DriverKit/c++/driver_base.h
index 683969f3..002cd768 100644
--- a/src/libDDK/DriverKit/c++/driver_base.h
+++ b/src/libDDK/DriverKit/c++/driver_base.h
@@ -31,9 +31,9 @@ class IDriverBase {
using PtrType = void*;
- virtual constexpr bool IsCastable() { return false; }
- virtual constexpr bool IsActive() { return false; }
- virtual PtrType Leak() { return nullptr; }
+ virtual constexpr bool IsCastable() { return false; }
+ virtual constexpr bool IsActive() { return false; }
+ virtual PtrType Leak() { return nullptr; }
virtual constexpr int32_t Type() { return kInvalidType; }
};
@@ -46,5 +46,7 @@ concept IsValidDriver = requires(Driver driver_base) {
/// @brief Consteval helper to detect whether a template is truly based on IDriverBase.
/// @note This helper is consteval only.
template <class Driver>
-inline bool ce_ddk_is_valid(Driver drv) { return IsValidDriver<Driver>(drv); }
+inline bool ce_ddk_is_valid(Driver drv) {
+ return IsValidDriver<Driver>(drv);
+}
} // namespace Kernel::DDK