Shallow wrapper around lua_geti which pops the top variable from the Lua stack when destroyed. More...
#include <lua_common.hpp>
Public Member Functions | |
| scoped_lua_argument (lua_State *L, int arg_index) | |
| scoped_lua_argument (lua_State *L, int value_index, int arg_index) | |
| ~scoped_lua_argument () | |
| scoped_lua_argument (const scoped_lua_argument &)=delete | |
| scoped_lua_argument & | operator= (const scoped_lua_argument &)=delete |
Private Attributes | |
| lua_State *const | state_ |
Shallow wrapper around lua_geti which pops the top variable from the Lua stack when destroyed.
This is meant to be used in local contexts for quick cleanup of the stack variable.
Definition at line 52 of file lua_common.hpp.
| scoped_lua_argument::scoped_lua_argument | ( | lua_State * | L, |
| int | arg_index | ||
| ) |
Definition at line 511 of file lua_common.cpp.
References state_.
| scoped_lua_argument::scoped_lua_argument | ( | lua_State * | L, |
| int | value_index, | ||
| int | arg_index | ||
| ) |
Definition at line 517 of file lua_common.cpp.
References state_.
| scoped_lua_argument::~scoped_lua_argument | ( | ) |
Definition at line 523 of file lua_common.cpp.
References state_.
|
delete |
|
delete |
|
private |
Definition at line 64 of file lua_common.hpp.
Referenced by scoped_lua_argument(), and ~scoped_lua_argument().