ref: c826661c9482333668837c55f6d215a90c3c9c10
parent: c8f12b4b538ff9ab70a1bb7105ac9c679be36be6
author: rrt <rrt>
date: Tue Jan 16 21:29:41 EST 2007
Add comment explaining where Lua function comes from in drain.
--- a/src/luaeff.c
+++ b/src/luaeff.c
@@ -109,10 +109,12 @@
st_sample_t_array_t inarr;
if (!lua->gotdata) {
+ /* Function is left on stack by getopts */
+
inarr.size = lua->isamp;
inarr.data = lua->data;
st_lua_pusharray(lua->L, inarr);
-
+
if ((ret = lua_pcall(lua->L, 1, 1, 0)) != 0) {
st_fail("error in Lua script: %d", ret);
return ST_EOF;