diff options
| author | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-26 10:08:33 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal@nekernel.org> | 2025-12-26 10:08:33 +0100 |
| commit | 9e746d42d2e3faa526f12ba222f5ee6924dd30f9 (patch) | |
| tree | 7f1a83f69562a2725bb9cda27c31d120640d2c1c /src/kernel/NeKit/OwnPtr.h | |
| parent | 731758b271233b9c11052001ffc20a5a2ca1f365 (diff) | |
feat! breaking API changes, use header guards and libSystem fixes.
Signed-off-by: Amlal El Mahrouss <amlal@nekernel.org>
Diffstat (limited to 'src/kernel/NeKit/OwnPtr.h')
| -rw-r--r-- | src/kernel/NeKit/OwnPtr.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/kernel/NeKit/OwnPtr.h b/src/kernel/NeKit/OwnPtr.h index ceb6142d..ea71f06d 100644 --- a/src/kernel/NeKit/OwnPtr.h +++ b/src/kernel/NeKit/OwnPtr.h @@ -5,7 +5,8 @@ ======================================== */ -#pragma once +#ifndef NEKIT_OWNPTR_H +#define NEKIT_OWNPTR_H #include <NeKit/Config.h> #include <NeKit/ErrorOr.h> @@ -51,7 +52,7 @@ class OwnPtr final { Ref<T> AsRef() { return Ref<T>(fCls); } explicit operator bool() { return fCls; } - + private: T* fCls{nullptr}; }; @@ -67,3 +68,5 @@ inline OwnPtr<T> make_ptr(Args&&... args) { return ret; } } // namespace Kernel + +#endif
\ No newline at end of file |
