| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
The WebAdmin now uses LuaState directly to call the one function it needs.
|
| |
|
|
|
|
| |
This simplifies calling Lua functions considerably, it's almost like calling a C++ function, only with an extra argument to delimit args from returned values.
|
|
|
|
| |
As requested in FS 418.
|
|
|
|
|
| |
References are now managed as RAII objects, cLuaState::cRef.
Destructor now calls correct function, either Close() or Detach(), based on the owned-ness of the lua_State *.
|
| |
|
|
|
|
| |
This will be useful for cases when we get a lua_State * from the outside and are asked to perform operations on it.
|
|
The cLuaState class is a wrapper for the lua_State * and for the common functions on it. The cPlugin_NewLua has been rewritten to use it instead of the raw pointer. Part of #33
|