Lua console.
More...
#include <console.h>
◆ Console()
Construct a new Console with a jLog::Log.
- Parameters
-
l | jLog::Log outputting Lua's messages. |
◆ ~Console()
◆ exitCalled()
bool Console::exitCalled |
( |
| ) |
const |
|
inline |
If sfoav.exit() has been called.
- Returns
- true exit has been requested in Lua.
-
false exit has not been requested in Lua.
◆ getGlobal()
◆ luaIsOk()
bool Console::luaIsOk |
( |
| ) |
|
|
inline |
◆ luaStatus()
std::string Console::luaStatus |
( |
| ) |
|
|
inline |
Convert Lua's status to a std::string.
- Returns
- std::string Lua status name.
◆ runFile()
bool Console::runFile |
( |
std::string |
file | ) |
|
|
inline |
Attempt to run a Lua script from a file on disc.
- Parameters
-
- Returns
- true Error occured.
-
false OK.
◆ runString()
bool Console::runString |
( |
std::string |
program | ) |
|
|
inline |
Attempt to run a Lua script from std::string.
- Parameters
-
- Returns
- true Error occured.
-
false OK.
The documentation for this class was generated from the following files: