summaryrefslogtreecommitdiffhomepage
path: root/src/kernel/NeKit/OwnPtr.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/NeKit/OwnPtr.h')
-rw-r--r--src/kernel/NeKit/OwnPtr.h7
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