32#if !defined(LUTOK_STACK_CLEANER_HPP)
33#define LUTOK_STACK_CLEANER_HPP
37#include <lutok/state.hpp>
Internal implementation for lutok::stack_cleaner.
Definition: stack_cleaner.cpp:37
A RAII model for values on the Lua stack.
Definition: stack_cleaner.hpp:71
void forget(void)
Forgets about any elements currently in the stack.
Definition: stack_cleaner.cpp:88
stack_cleaner(const stack_cleaner &)
Disallow copies.
std::unique_ptr< impl > _pimpl
Pointer to the shared internal implementation.
Definition: stack_cleaner.hpp:75
stack_cleaner & operator=(const stack_cleaner &)
Disallow assignment.
~stack_cleaner(void)
Pops any values from the stack not known at construction time.
Definition: stack_cleaner.cpp:72
A RAII model for the Lua state.
Definition: state.hpp:76