Macro support for unpacking weak pointers.
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
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…
x
Reference in New Issue
Block a user