Lua console.
More...
#include <console.h>
◆ Console()
◆ ~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() [1/2]
Attempt to run a Lua script from std::string.
- Parameters
-
- Returns
- true Error occured.
-
false OK.
◆ runString() [2/2]
| 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: