diff options
author | chai <chaifix@163.com> | 2019-04-03 21:56:51 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-04-03 21:56:51 +0800 |
commit | e13616b5c40f912853be99f0603f0e4c97b22062 (patch) | |
tree | 6663eab986dbf0317f326bce863edc3d7bf3332e /source/3rd-party/Luax/luax_dog.h | |
parent | c8a6a8e2dd6f015a31b4f8191ad945a78fe77f3d (diff) |
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_dog.h')
-rw-r--r-- | source/3rd-party/Luax/luax_dog.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/source/3rd-party/Luax/luax_dog.h b/source/3rd-party/Luax/luax_dog.h new file mode 100644 index 0000000..f6d95d5 --- /dev/null +++ b/source/3rd-party/Luax/luax_dog.h @@ -0,0 +1,33 @@ +#ifndef __LUAX_DOG_H__ +#define __LUAX_DOG_H__ + +#include "luax_config.h" + +namespace Luax +{ + + /// + /// LuaxNativeClassʵüwatch dogֻwatch dogͨʱſdelete + /// + class LuaxDog + { + public: + LuaxDog() + : mVMRef(0) + , mNativeRef(0) + { + } + + inline operator bool() + { + return mVMRef == 0 && mNativeRef == 0; + } + + uint mVMRef; // йܸ + uint mNativeRef; // + + }; + +} + +#endif
\ No newline at end of file |