diff options
author | chai <chaifix@163.com> | 2021-10-23 18:19:18 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-23 18:19:18 +0800 |
commit | 7bf672fd0c6211909d94078b448032b1bd0916ef (patch) | |
tree | 655b875b81ec8d0559ca905fb7d37a1d88e6a80d /Runtime/Lua/LuaBind/LuaBindVM.cpp | |
parent | df0444f85f9bf623cc886e1632e624ef20cb0f1b (diff) |
*misc
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindVM.cpp')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindVM.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindVM.cpp b/Runtime/Lua/LuaBind/LuaBindVM.cpp index 6b39288..e454929 100644 --- a/Runtime/Lua/LuaBind/LuaBindVM.cpp +++ b/Runtime/Lua/LuaBind/LuaBindVM.cpp @@ -60,6 +60,16 @@ namespace LuaBind return mMainThread; } + void VM::SetCurThread(lua_State* cur) + { + mCurThread = cur; + } + + lua_State* VM::GetCurThread() + { + return mCurThread; + } + State VM::GetMainState() { return mMainThread; |