Cuberite
A lightweight, fast and extensible game server for Minecraft
Public Member Functions | Protected Attributes | List of all members
cLuaState::cStackBalancePopper Class Reference

Makes sure that the Lua state's stack has the same number of elements on destruction as it had on construction of this object (RAII). More...

#include <LuaState.h>

Collaboration diagram for cLuaState::cStackBalancePopper:
Collaboration graph
[legend]

Public Member Functions

 cStackBalancePopper (cLuaState &a_LuaState)
 
 ~cStackBalancePopper () noexcept(false)
 

Protected Attributes

int m_Count
 
cLuaStatem_LuaState
 

Detailed Description

Makes sure that the Lua state's stack has the same number of elements on destruction as it had on construction of this object (RAII).

Can only remove elements, if there are less than expected, throws.

Definition at line 110 of file LuaState.h.

Constructor & Destructor Documentation

◆ cStackBalancePopper()

cLuaState::cStackBalancePopper::cStackBalancePopper ( cLuaState a_LuaState)
inline

Definition at line 113 of file LuaState.h.

◆ ~cStackBalancePopper()

cLuaState::cStackBalancePopper::~cStackBalancePopper ( )
inlinenoexcept

Definition at line 119 of file LuaState.h.

Member Data Documentation

◆ m_Count

int cLuaState::cStackBalancePopper::m_Count
protected

Definition at line 138 of file LuaState.h.

◆ m_LuaState

cLuaState& cLuaState::cStackBalancePopper::m_LuaState
protected

Definition at line 137 of file LuaState.h.


The documentation for this class was generated from the following file: