aboutsummaryrefslogtreecommitdiffstats
path: root/src/systems/lua.cpp
diff options
context:
space:
mode:
authorClyne Sullivan <tullivan99@gmail.com>2017-10-16 18:43:06 -0400
committerClyne Sullivan <tullivan99@gmail.com>2017-10-16 18:43:06 -0400
commit2bd1eaef1b9ec848933a40049ec8866e2b83a47d (patch)
tree714a018bdc4b42aa1e9bcac5270190d068cf177b /src/systems/lua.cpp
parent07b3ae994d0e68b5c266f5aa212024d5064847c2 (diff)
do not touch birb
Diffstat (limited to 'src/systems/lua.cpp')
-rw-r--r--src/systems/lua.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/systems/lua.cpp b/src/systems/lua.cpp
index e412334..18d2ef1 100644
--- a/src/systems/lua.cpp
+++ b/src/systems/lua.cpp
@@ -6,7 +6,7 @@ void LuaScript::setGlobal(const LuaVariable& nv) const
lua_setglobal(state, std::get<std::string>(nv).c_str());
}
-void LuaScript::getReturns(std::vector<double>& rets) const
+void LuaScript::getReturns(LuaRetList& rets) const
{
int count = lua_gettop(state);
for (int i = 1; i <= count; i++)
@@ -14,7 +14,7 @@ void LuaScript::getReturns(std::vector<double>& rets) const
lua_pop(state, count);
}
-void LuaScript::operator()(const std::string& func, std::vector<LuaVariable> vars) const
+void LuaScript::operator()(const std::string& func, LuaList vars) const
{
for (auto& v : vars)
setGlobal(v);
@@ -25,8 +25,8 @@ void LuaScript::operator()(const std::string& func, std::vector<LuaVariable> var
}
}
-void LuaScript::operator()(const std::string& func, std::vector<double>& rets,
- std::vector<LuaVariable> vars) const
+void LuaScript::operator()(const std::string& func, LuaRetList& rets,
+ LuaList vars) const
{
for (auto& v : vars)
setGlobal(v);
@@ -38,7 +38,7 @@ void LuaScript::operator()(const std::string& func, std::vector<double>& rets,
}
}
-void LuaScript::operator()(std::vector<LuaVariable> vars) const
+void LuaScript::operator()(LuaList vars) const
{
for (auto& v : vars)
setGlobal(v);
@@ -49,7 +49,7 @@ void LuaScript::operator()(std::vector<LuaVariable> vars) const
}
}
-void LuaScript::operator()(std::vector<double>& rets, std::vector<LuaVariable> vars) const
+void LuaScript::operator()(LuaRetList& rets, LuaList vars) const
{
for (auto& v : vars)
setGlobal(v);