summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_dog.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-04-03 21:56:51 +0800
committerchai <chaifix@163.com>2019-04-03 21:56:51 +0800
commite13616b5c40f912853be99f0603f0e4c97b22062 (patch)
tree6663eab986dbf0317f326bce863edc3d7bf3332e /source/3rd-party/Luax/luax_dog.h
parentc8a6a8e2dd6f015a31b4f8191ad945a78fe77f3d (diff)
*misc
Diffstat (limited to 'source/3rd-party/Luax/luax_dog.h')
-rw-r--r--source/3rd-party/Luax/luax_dog.h33
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