summaryrefslogtreecommitdiff
path: root/Runtime/Lua/LuaBind/LuaBindClass.hpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-10-25 23:29:21 +0800
committerchai <chaifix@163.com>2021-10-25 23:29:21 +0800
commit7ecf913256fb396e3027aac3318d996a716a52ef (patch)
tree4540835c881a63b665e2a692bf30115fd29e8bb0 /Runtime/Lua/LuaBind/LuaBindClass.hpp
parent0816cd70ca1a213b6ed872bcf3c0bf0912473722 (diff)
+ job system
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindClass.hpp')
-rw-r--r--Runtime/Lua/LuaBind/LuaBindClass.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindClass.hpp b/Runtime/Lua/LuaBind/LuaBindClass.hpp
index eb028c2..7fb4529 100644
--- a/Runtime/Lua/LuaBind/LuaBindClass.hpp
+++ b/Runtime/Lua/LuaBind/LuaBindClass.hpp
@@ -414,7 +414,7 @@ namespace LuaBind
PushMemberRef(state, script);
state.GetField(-1, method);
PushMemberRef(state, script);
- state.Call(1, 0);
+ state.Call(1, 0, onErrorOccured);
state.SetTop(top);
}
@@ -512,7 +512,7 @@ namespace LuaBind
if (state.IsType(-1, LUA_TFUNCTION))
{
lua_pushvalue(L, 1); // userdata
- state.Call(1, 1); // 派生类的GetClassName函数
+ state.Call(1, 1, onErrorOccured); // 派生类的GetClassName函数
classname = state.GetValue<cc8*>(-1, "");
}
else