Cuberite
A lightweight, fast and extensible game server for Minecraft
|
A RAII class for values pushed onto the Lua stack. More...
#include <LuaState.h>
Public Member Functions | |
cStackValue (cLuaState &a_LuaState) | |
cStackValue (cStackValue &&a_Src) | |
cStackValue (void) | |
bool | IsValid (void) const |
void | Set (cLuaState &a_LuaState) |
~cStackValue () noexcept(false) | |
Protected Member Functions | |
cStackValue (const cStackValue &)=delete | |
Protected Attributes | |
lua_State * | m_LuaState |
int | m_StackLen |
Used for debugging, Lua state's stack size is checked against this number to make sure it is the same as when the value was pushed. More... | |
A RAII class for values pushed onto the Lua stack.
Will pop the value off the stack in the destructor.
Definition at line 457 of file LuaState.h.
|
inline |
Definition at line 460 of file LuaState.h.
|
inline |
Definition at line 465 of file LuaState.h.
|
inline |
Definition at line 471 of file LuaState.h.
|
inlinenoexcept |
Definition at line 479 of file LuaState.h.
|
protecteddelete |
|
inline |
Definition at line 494 of file LuaState.h.
|
inline |
Definition at line 488 of file LuaState.h.
|
protected |
Definition at line 500 of file LuaState.h.
|
protected |
Used for debugging, Lua state's stack size is checked against this number to make sure it is the same as when the value was pushed.
Definition at line 504 of file LuaState.h.