Macro support for unpacking weak pointers.
continuous-integration/drone/push Build is failing Details

This commit is contained in:
Deukhoofd 2020-03-26 21:55:00 +01:00
parent 7524c2d61c
commit eb84eb0588
Signed by: Deukhoofd
GPG Key ID: ADF2E9256009EDCE
1 changed files with 4 additions and 1 deletions

View File

@ -18,3 +18,6 @@
#endif
#define AssertNotNull(value) Assert(value != nullptr)
#define UnpackWeakPtr(weakPtr, sharedPtr) \
Assert(!weakPtr.expired()); \
auto sharedPtr = weakPtr.lock();