From 46ae9729df3decb7ea34e534d0431c17b4996811 Mon Sep 17 00:00:00 2001 From: Jamie Reece Wilson Date: Wed, 6 Mar 2024 20:44:02 +0000 Subject: [PATCH] [+] AuSharedPointerFromShared --- Include/auROXTL/AU_MACROS.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Include/auROXTL/AU_MACROS.hpp b/Include/auROXTL/AU_MACROS.hpp index 2a68330..a8b06c9 100644 --- a/Include/auROXTL/AU_MACROS.hpp +++ b/Include/auROXTL/AU_MACROS.hpp @@ -266,6 +266,10 @@ struct AuStringOwnedException : AuStringException #define AuSharedPointerFromThis(pPtr) (AuSPtr>(AuSharedFromThis(), pPtr)) #endif +#if !defined(AuSharedPointerFromShared) + #define AuSharedPointerFromShared(pPtr, pParentShared) (AuSPtr>(pParentShared, pPtr)) +#endif + #define AU_EMIT_FIRST_COMMA_FIRST(n)n #define AU_EMIT_FIRST_COMMA_OTHERS(n),n