diff options
author | chai <chaifix@163.com> | 2019-03-17 20:36:39 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2019-03-17 20:36:39 +0800 |
commit | 34fe8e795aaeed3a9f50d895d1cadd8f124c9605 (patch) | |
tree | 9242101b5d08474bf68aefe1c9ea8bb024a8cfb1 /Source/3rdParty/Luax/luax_state.cpp | |
parent | af78bbf9f1ea499be92611aa4a63664d79d13b25 (diff) |
*luax
Diffstat (limited to 'Source/3rdParty/Luax/luax_state.cpp')
-rw-r--r-- | Source/3rdParty/Luax/luax_state.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/3rdParty/Luax/luax_state.cpp b/Source/3rdParty/Luax/luax_state.cpp index 94ca148..b27825e 100644 --- a/Source/3rdParty/Luax/luax_state.cpp +++ b/Source/3rdParty/Luax/luax_state.cpp @@ -171,6 +171,13 @@ namespace Luax lua_pushlightuserdata(mState, (void*)value); } + void LuaxState::PushValues(int idx, int n) + { + idx = AbsIndex(idx); + for (int i = idx; i < idx + n; ++i) + lua_pushvalue(mState, i); + } + void LuaxState::Pop(int n /* = 1 */) { lua_pop(mState, n); |