#include <adsolua.h>
Public Member Functions | |
| void | declareFunction (char *name) |
| Declare a Lua C-function name. | |
| void | declareTable (char *name) |
| Declare a Lua C-table name. | |
| void | setVariable (char *name, int val) |
| Set a global Lua variable. | |
| void | setVariable (char *name, char *str) |
| Set a global Lua variable. | |
| int | callFunction (char *name, int val) |
| Call a Lua function. | |
| void | addInterface (AdsoLuaInterface *intf) |
| Add a Lua interface. | |
| int | doFile (char *filename) |
| Execute a Lua file. | |
| AdsoLua () | |
| ~AdsoLua () | |
Friends | |
| int | globalCallback (lua_State *L) |
| Global Lua callback for functions defined through AdsoLuaInterface. | |
|
|
|
|
|
|
|
|
Add a Lua interface.
|
|
||||||||||||
|
Call a Lua function.
|
|
|
Declare a Lua C-function name. An interface that contains the definition of the function must be added with addInterface(). |
|
|
Declare a Lua C-table name. This function may be used to declare Lua tables for which indexing will cause a call to the and AdsoLuaInterface callback. This may be used to create a link between a normal C struct and the Lua table. An interface that handles the callback must be added with addInterface(). |
|
|
Execute a Lua file.
|
|
||||||||||||
|
Set a global Lua variable.
|
|
||||||||||||
|
Set a global Lua variable.
|
|
|
Global Lua callback for functions defined through AdsoLuaInterface. The function will dispatch the function call to the appropriate AdsoLua object. |
1.3.2