[Overview][Types][Classes][Procedures and functions] |
Source position: plua.pas line 21
procedure plua_RegisterLuaTable( |
l: Plua_State; |
Name: AnsiString; |
Reader: lua_CFunction = nil; |
Writer: lua_CFunction = nil; |
TableIndex: Integer = LUA_GLOBALSINDEX |
); |
l |
|
PLua_State to work with. |
Name |
|
The name that should be used to identify the table within Lua. This name should be a valid variable name. |
Reader |
|
Pascal method called when a value is read from the table (IE: the __index meta-method). |
Writer |
|
Pascal method called when a value is written to the table (IE: the __newindex meta-method). |
TableIndex |
|
Table index to put the new table into, if none is specified then LUA_GLOABLSINDEX is used. Thus, making the table a global variable. |
Creates a table within the Lua environment specified and associates its __index and __newindex meta-methods with the reader and writer specified.