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

Asserts that the Lua stack has the same amount of entries when this object is destructed, as when it was constructed. More...

#include <LuaState.h>

Public Member Functions

 cStackBalanceCheck (const char *a_FileName, int a_LineNum, lua_State *a_LuaState, bool a_ShouldLogStack=true)
 
 ~cStackBalanceCheck () noexcept(false)
 

Protected Attributes

const AString m_FileName
 
int m_LineNum
 
lua_State * m_LuaState
 
int m_StackPos
 

Detailed Description

Asserts that the Lua stack has the same amount of entries when this object is destructed, as when it was constructed.

Used for checking functions that should preserve Lua stack balance.

Definition at line 62 of file LuaState.h.

Constructor & Destructor Documentation

◆ cStackBalanceCheck()

cLuaState::cStackBalanceCheck::cStackBalanceCheck ( const char *  a_FileName,
int  a_LineNum,
lua_State *  a_LuaState,
bool  a_ShouldLogStack = true 
)
inline

Definition at line 65 of file LuaState.h.

◆ ~cStackBalanceCheck()

cLuaState::cStackBalanceCheck::~cStackBalanceCheck ( )
inlinenoexcept

Definition at line 79 of file LuaState.h.

Member Data Documentation

◆ m_FileName

const AString cLuaState::cStackBalanceCheck::m_FileName
protected

Definition at line 94 of file LuaState.h.

◆ m_LineNum

int cLuaState::cStackBalanceCheck::m_LineNum
protected

Definition at line 95 of file LuaState.h.

◆ m_LuaState

lua_State* cLuaState::cStackBalanceCheck::m_LuaState
protected

Definition at line 96 of file LuaState.h.

◆ m_StackPos

int cLuaState::cStackBalanceCheck::m_StackPos
protected

Definition at line 97 of file LuaState.h.


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