static int
_elua_scan_params(lua_State *L, int i, Eina_Bool tr, char *params, ...) // Stack usage -
// if i is a table
- // [-0, +n, e]
+ // [-n, +n, e]
// else
// [-0, +0, -]
// if tr
*v = lua_tointeger(L, j); // Stack usage [-0, +0, -]
n++;
}
-// FIXME: Should probably pop that name off the stack if it's a table. Same for the following.
break;
}
case '#':
{
if (table)
{
+ // If this is a table, then we pushed a value on the stack, pop it off. But only if not tr, coz otherwise the stack gets reset anyway.
+ if (!tr)
+ lua_pop(L, 1); // Stack usage [-n, +0, -]
}
else
j++;