summaryrefslogtreecommitdiffstatshomepage
path: root/3rdparty/sol2/sol/stack_proxy.hpp
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2017-02-05 16:01:50 +0100
committer Miodrag Milanovic <mmicko@gmail.com>2017-02-05 16:06:06 +0100
commitac096aa2a0921efde96b76252dffb119dcf27efc (patch)
tree2ad9a28a7f6babce8cfcbf5995e3e055ff13ff60 /3rdparty/sol2/sol/stack_proxy.hpp
parent29df715138452ee18ba19ec4b07e18c4b3185de7 (diff)
Update sol2 (nw)
Diffstat (limited to '3rdparty/sol2/sol/stack_proxy.hpp')
-rw-r--r--3rdparty/sol2/sol/stack_proxy.hpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/3rdparty/sol2/sol/stack_proxy.hpp b/3rdparty/sol2/sol/stack_proxy.hpp
index c1959233b63..487e4b29772 100644
--- a/3rdparty/sol2/sol/stack_proxy.hpp
+++ b/3rdparty/sol2/sol/stack_proxy.hpp
@@ -43,7 +43,11 @@ namespace sol {
}
int push() const {
- lua_pushvalue(L, index);
+ return push(L);
+ }
+
+ int push(lua_State* Ls) const {
+ lua_pushvalue(Ls, index);
return 1;
}