diff options
author | chai <chaifix@163.com> | 2019-03-12 23:08:31 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-12 23:08:31 +0800 |
commit | 6016ece202eef94ed76bd20d4f7879ccc71cc2e6 (patch) | |
tree | da0d0be011ee24489174bde1ec1c436ce7aaa1b2 /Source/3rdParty/Luax/luax_ref.h | |
parent | 9eba034f5c2ffd49f33d38c283b24230f9e362e0 (diff) |
*luax
Diffstat (limited to 'Source/3rdParty/Luax/luax_ref.h')
-rw-r--r-- | Source/3rdParty/Luax/luax_ref.h | 19 |
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 { |