summaryrefslogtreecommitdiff
path: root/source/3rd-party/Luax/luax_dog.h
diff options
context:
space:
mode:
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