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
TNONE =
-1
TNIL =
0
TBOOLEAN =
1
TLIGHTUSERDATA =
2
TNUMBER =
3
TSTRING =
4
TTABLE =
5
TFUNCTION =
6
TUSERDATA =
7
TTHREAD =
8
LUA_MULTRET =
-1