summaryrefslogtreecommitdiff
path: root/Source/3rdParty/Luax/luax_ref.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/3rdParty/Luax/luax_ref.h')
-rw-r--r--Source/3rdParty/Luax/luax_ref.h19
1 files changed, 18 insertions, 1 deletions
diff --git a/Source/3rdParty/Luax/luax_ref.h b/Source/3rdParty/Luax/luax_ref.h
index 122c448..759a314 100644
--- a/Source/3rdParty/Luax/luax_ref.h
+++ b/Source/3rdParty/Luax/luax_ref.h
@@ -5,18 +5,35 @@ namespace Luax
{
///
- /// Lua referenceLUA_REGISTRYINDEXĴ档
+ /// ãLUA_REGISTRYINDEX
///
class LuaxRef
{
+ public:
+
+ enum
+ {
+ STRONG,
+ WEAK
+ };
+
+ private:
+
+ int mRefID; // = luaL_ref
};
+ ///
+ /// ǿãLUA_REGISTRYINDEX["LUAX_STRONGREF_TABLE"]
+ ///
class LuaxStrongRef: public LuaxRef
{
};
+ ///
+ /// ãLUA_REGISTRYINDEX["LUAX_WEAKREF_TABLE"]
+ ///
class LuaxWeakRef : public LuaxRef
{