Ardour  9.0-pre0-350-gf17a656217
LuaState Class Reference

#include <luastate.h>

Public Member Functions

 LuaState (bool sandbox, bool rt_safe)
 
 LuaState (lua_State *ls)
 
 ~LuaState ()
 
int do_command (std::string)
 
int do_file (std::string)
 
void collect_garbage () const
 
void collect_garbage_step (int debt=0)
 
void tweak_rt_gc ()
 
lua_StategetState ()
 

Public Attributes

sigc::signal< void, std::string > Print
 

Protected Attributes

lua_StateL
 

Private Member Functions

void init ()
 
void sandbox (bool rt_safe)
 
void print (std::string text)
 

Static Private Member Functions

static int _print (lua_State *L)
 

Detailed Description

Definition at line 28 of file luastate.h.

Constructor & Destructor Documentation

◆ LuaState() [1/2]

LuaState::LuaState ( bool  sandbox,
bool  rt_safe 
)

◆ LuaState() [2/2]

LuaState::LuaState ( lua_State ls)

◆ ~LuaState()

LuaState::~LuaState ( )

Member Function Documentation

◆ _print()

static int LuaState::_print ( lua_State L)
staticprivate

◆ collect_garbage()

void LuaState::collect_garbage ( ) const

◆ collect_garbage_step()

void LuaState::collect_garbage_step ( int  debt = 0)

◆ do_command()

int LuaState::do_command ( std::string  )

◆ do_file()

int LuaState::do_file ( std::string  )

◆ getState()

lua_State* LuaState::getState ( )
inline

Definition at line 42 of file luastate.h.

◆ init()

void LuaState::init ( )
private

◆ print()

void LuaState::print ( std::string  text)
private

◆ sandbox()

void LuaState::sandbox ( bool  rt_safe)
private

◆ tweak_rt_gc()

void LuaState::tweak_rt_gc ( )

Member Data Documentation

◆ L

lua_State* LuaState::L
protected

Definition at line 45 of file luastate.h.

◆ Print

sigc::signal<void,std::string> LuaState::Print

Definition at line 40 of file luastate.h.


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