setFunction lua stack checking