Macro support for unpacking weak pointers.
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
This commit is contained in:
parent
7524c2d61c
commit
eb84eb0588
|
@ -18,3 +18,6 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define AssertNotNull(value) Assert(value != nullptr)
|
#define AssertNotNull(value) Assert(value != nullptr)
|
||||||
|
#define UnpackWeakPtr(weakPtr, sharedPtr) \
|
||||||
|
Assert(!weakPtr.expired()); \
|
||||||
|
auto sharedPtr = weakPtr.lock();
|
Loading…
Reference in New Issue