Module: Rufus::Lua::StateMixin

Included in:
Ref, State
Defined in:
lib/rufus/lua/state.rb

Overview

Rufus::Lua::Lib contains all the raw C API Lua methods. The methods here are shared by all the rufus-lua classes that have to deal with a Lua state. They are protected since they aren’t meant to be called directly.

The entry point of rufus-lua is Rufus::Lua::State, look there.

Constant Summary collapse

LUA_GLOBALSINDEX =
-10002
LUA_ENVIRONINDEX =
-10001
LUA_REGISTRYINDEX =
-10000
LUA_NOREF =
-2
LUA_REFNIL =
-1
LUA_GCSTOP =

Lua GC constants

0
LUA_GCRESTART =
1
LUA_GCCOLLECT =
2
LUA_GCCOUNT =
3
LUA_GCCOUNTB =
4
LUA_GCSTEP =
5
LUA_GCSETPAUSE =
6
LUA_GCSETSTEPMUL =
7
TNONE =
-1
TNIL =
0
TBOOLEAN =
1
TLIGHTUSERDATA =
2
TNUMBER =
3
TSTRING =
4
TTABLE =
5
TFUNCTION =
6
TUSERDATA =
7
TTHREAD =
8
SIMPLE_TYPES =
[ TNIL, TBOOLEAN, TNUMBER, TSTRING ]
LUA_MULTRET =
-1