#include <vector>
#include <array>
#include <string>
#include <stdexcept>
#include <algorithm>
#include <lua/src/lua.h>
#include <lua/src/lauxlib.h>
#include <lua/src/lualib.h>
Go to the source code of this file.
◆ getLuaTableOfNumericLuaTable()
Get the a Lua table of table of doubles.
- Parameters
-
lua | the Lua context. |
index | the stack index of the table. |
- Returns
- std::vector<std::vector<double>> the values.
◆ getNumericLuaTable()
Get the a Lua table of doubles.
- Parameters
-
lua | the Lua context. |
index | the stack index of the table. |
- Returns
- std::vector<double> the values.
◆ lua_checkArgumentCount()
int lua_checkArgumentCount |
( |
lua_State * |
lua, |
|
|
int |
expected, |
|
|
std::string |
msg |
|
) |
| |
Check the number of arguments to the Lua call.
- Parameters
-
lua | the Lua context. |
expected | the expected argument count. |
msg | the error message to write if failing. |
- Returns
- int the Lua return code.