[*] Amend 11bb77f1, fully disable bCache flag for packed shared pointers

This commit is contained in:
Reece Wilson 2024-09-21 22:00:59 +01:00
parent 5c1f608cf2
commit 718080245c
2 changed files with 14 additions and 1 deletions

View File

@ -90,7 +90,8 @@
#define _AURORA_AVOID_EXTREMLY_DUMB_STL_TYPES #define _AURORA_AVOID_EXTREMLY_DUMB_STL_TYPES
// TODO: // TODO:
#if !defined(_AURORA_NULLEXPT_BRANCH) #if !defined(_AURORA_NULLEXPT_BRANCH)
//#define _AURORA_NULLEXPT_BRANCH #define _AURORA_NULLEXPT_BRANCH
#define _AURORA_NULLEXPT_BRANCH_NO_BAD_SHARED_STRUCT
#endif #endif
#if !defined(AURORA_ROXTL_HAS_RUNTIME) #if !defined(AURORA_ROXTL_HAS_RUNTIME)

View File

@ -372,6 +372,18 @@ namespace Aurora::Memory
ptr = &_detail::gNoop; ptr = &_detail::gNoop;
} }
} }
#elif defined(_AURORA_NULLEXPT_BRANCH_NO_BAD_SHARED_STRUCT)
auline void throwif() const
{
if (!Base_t::operator bool()) [[likely]]
{
AU_THROW_STRING("ExSharedPointer Null Access Violation");
}
}
auline void _cache()
{
}
#else #else
bool cached {}; bool cached {};
auline void throwif() const auline void throwif() const