diff options
author | chai <chaifix@163.com> | 2021-10-18 19:56:41 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-18 19:56:41 +0800 |
commit | 45328cbadd8a946c19a77301f218efbf650e2f28 (patch) | |
tree | 8ec4f3a9737b2cbb9744f8347a56783743be2a4c /Runtime/Lua/LuaBind/LuaBindMemberRef.h | |
parent | b5702ece4c2cf751c252e76fb885a7ec41ccabe8 (diff) |
*misc
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindMemberRef.h')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindMemberRef.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindMemberRef.h b/Runtime/Lua/LuaBind/LuaBindMemberRef.h new file mode 100644 index 0000000..045d6ef --- /dev/null +++ b/Runtime/Lua/LuaBind/LuaBindMemberRef.h @@ -0,0 +1,27 @@ +#ifndef __LUA_BIND_MEMBER_REF_H__ +#define __LUA_BIND_MEMBER_REF_H__ + +#include "LuaBindConfig.h" + +namespace LuaBind +{ + + // + // 实例的ref table保存的member ref。由luax class做具体的管理。实例的ref table是强引用,用来管理里面member的生命周期。 + // 用来在lua和native之间进行数据沟通。 + // + class MemberRef + { + public: + MemberRef(); + ~MemberRef(); + + inline operator bool() { return refID != LUA_NOREF; }; + + int refID; + + }; + +} + +#endif
\ No newline at end of file |