SimpleFastOpenAtomicVisualiser
Loading...
Searching...
No Matches
Functions
lua.h File Reference
#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>
Include dependency graph for lua.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::vector< doublegetNumericLuaTable (lua_State *lua, int index)
 Get the a Lua table of doubles.
 
std::vector< std::vector< double > > getLuaTableOfNumericLuaTable (lua_State *lua, int index)
 Get the a Lua table of table of doubles.
 
int lua_checkArgumentCount (lua_State *lua, int expected, std::string msg)
 Check the number of arguments to the Lua call.
 

Function Documentation

◆ getLuaTableOfNumericLuaTable()

std::vector< std::vector< double > > getLuaTableOfNumericLuaTable ( lua_State lua,
int  index 
)

Get the a Lua table of table of doubles.

Parameters
luathe Lua context.
indexthe stack index of the table.
Returns
std::vector<std::vector<double>> the values.

◆ getNumericLuaTable()

std::vector< double > getNumericLuaTable ( lua_State lua,
int  index 
)

Get the a Lua table of doubles.

Parameters
luathe Lua context.
indexthe 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
luathe Lua context.
expectedthe expected argument count.
msgthe error message to write if failing.
Returns
int the Lua return code.