diff options
author | chai <chaifix@163.com> | 2021-11-10 19:49:15 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-10 19:49:15 +0800 |
commit | f706f0e17ac2e7893feddc96b496db89f35e94a8 (patch) | |
tree | 5daa1df2c19ced5518efb57ab70e5def78b243e2 /Runtime/Lua/LuaBind/LuaBindInvoker.h | |
parent | fd646350b566dbe274b65b775029bd45b05e22bd (diff) |
*misc
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindInvoker.h')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindInvoker.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindInvoker.h b/Runtime/Lua/LuaBind/LuaBindInvoker.h index edb0725..45a4e63 100644 --- a/Runtime/Lua/LuaBind/LuaBindInvoker.h +++ b/Runtime/Lua/LuaBind/LuaBindInvoker.h @@ -11,13 +11,9 @@ namespace LuaBind // 调用全局lua方法 struct GlobalInvoker { - GlobalInvoker(lua_State* st) - : state(st) - { - argc = 0; - } - UniversalRef method; + UniversalRef method; + GlobalInvoker(lua_State* st) : state(st), argc(0) {} void AddInt(int n); void AddFloat(float n); void AddNil(); @@ -30,9 +26,9 @@ namespace LuaBind ++argc; } - void Invoke(int nReturns); + virtual void Invoke(int nReturns); - private: + protected: State state; int argc; }; |