LoveSy 3d2e1f5fc7
Fix crash when debugger attached (#12)
* Fix crash when debugger attached

* 1

* 2

* 3

* 4
2022-04-03 11:23:15 +08:00

19 lines
344 B
C++

#pragma once
namespace lsplant::art {
template <typename MirrorType>
class ObjPtr {
public:
inline MirrorType *operator->() const { return Ptr(); }
inline MirrorType *Ptr() const { return reference_; }
inline operator MirrorType *() const { return Ptr(); }
private:
MirrorType *reference_;
};
} // namespace lsplant::art