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