From 718375b236a64ae25b7f6f91ebc5cc635bca994e Mon Sep 17 00:00:00 2001 From: Reece Date: Sun, 11 Jul 2021 11:50:44 +0100 Subject: [PATCH] [+] Added AU_WEAK_FROM_THIS --- Include/AuroraMacros.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/Include/AuroraMacros.hpp b/Include/AuroraMacros.hpp index e6c9b5f6..ac4fcc4e 100644 --- a/Include/AuroraMacros.hpp +++ b/Include/AuroraMacros.hpp @@ -12,6 +12,7 @@ #define AU_NO_COPY_NO_MOVE(type) AU_NO_COPY(type) AU_NO_MOVE(type) #define AU_SHARED_FROM_THIS (std::static_pointer_cast>(this->shared_from_this())) +#define AU_WEAK_FROM_THIS (AuWPtr>(std::static_pointer_cast>(this->shared_from_this()))) #define AU_STRINGIFY_(in) #in #define AU_STRINGIFY(in) AU_STRINGIFY_(in)