From 7ecf913256fb396e3027aac3318d996a716a52ef Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 25 Oct 2021 23:29:21 +0800 Subject: + job system --- Runtime/Lua/LuaBind/LuaBindClass.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Runtime/Lua/LuaBind/LuaBindClass.hpp') 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(-1, ""); } else -- cgit v1.1-26-g67d0