summaryrefslogtreecommitdiff
path: root/Runtime/Lua/LuaBind/LuaBindInvoker.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-09 19:22:13 +0800
committerchai <chaifix@163.com>2021-11-09 19:22:13 +0800
commitd8417b03b9c2a820d3d3be0dfa80841b4d1f4c04 (patch)
tree7d036d283bd7a626d56c5c5a725733df439c8368 /Runtime/Lua/LuaBind/LuaBindInvoker.cpp
parent13f477664c07826c92eac774f0035994c460c057 (diff)
*misc
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindInvoker.cpp')
-rw-r--r--Runtime/Lua/LuaBind/LuaBindInvoker.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindInvoker.cpp b/Runtime/Lua/LuaBind/LuaBindInvoker.cpp
index debebf8..a95ef5c 100644
--- a/Runtime/Lua/LuaBind/LuaBindInvoker.cpp
+++ b/Runtime/Lua/LuaBind/LuaBindInvoker.cpp
@@ -76,12 +76,18 @@ namespace LuaBind
++argc;
}
- void MemberInvoker::AddTable(INativeTable& tb)
+ void MemberInvoker::AddTable(const INativeTable& tb)
{
tb.CastToTable(state);
++argc;
}
+ void MemberInvoker::AddLuaObject(const ILuaClass& obj)
+ {
+ obj.CastToLuaObject(state);
+ ++argc;
+ }
+
void MemberInvoker::AddMember(MemberRef member)
{
owner->PushMemberRef(state, member);