| 214 | |
| 215 | template <typename... Ret, typename... Args> |
| 216 | decltype(auto) call(Args&&... args) { |
| 217 | lua_State* L = this->lua_state(); |
| 218 | push(L); |
| 219 | int idx = lua_gettop(L); |
| 220 | stack_aligned_function func(L, idx); |
| 221 | return func.call<Ret...>(std::forward<Args>(args)...); |
| 222 | } |
| 223 | |
| 224 | template <typename... Args> |
| 225 | decltype(auto) operator()(Args&&... args) { |