Monado OpenXR Runtime
Loading...
Searching...
No Matches
u_weak_ptr.hpp File Reference

C++ helpers for weak pointers. More...

#include <memory>
Include dependency graph for u_weak_ptr.hpp:

Go to the source code of this file.

Macros

#define U_ASSERT_WEAK_PTR_RET(ptr, msg, ...)
 

Detailed Description

C++ helpers for weak pointers.

Author
Beyley Cardellio ep1cm.nosp@m.1n10.nosp@m.n123@.nosp@m.gmai.nosp@m.l.com

Macro Definition Documentation

◆ U_ASSERT_WEAK_PTR_RET

#define U_ASSERT_WEAK_PTR_RET (   ptr,
  msg,
  ... 
)
Value:
do { \
if (!ptr) { \
U_LOG_E("Handle " #ptr " has expired unexpectedly! [%s:%d]: " msg, __func__, __LINE__); \
assert(false); \
return __VA_ARGS__; \
} \
} while (0)