Represents a base library package in a Lua script.
More...
#include <Lib.hpp>
|
|
using | Map = std::unordered_map<std::string, SL::Function> |
| |
|
| template<typename... Args> |
| static std::tuple< Args... > | extractArgs (State L) |
| | Helper function extracting a list of types arguments from a Lua stack.
|
| |
|
|
SL_SYMBOL | Base (const std::string &name, const Map &funcs) |
| |
|
|
std::string | _name |
| |
|
Map | _funcs |
| |
Represents a base library package in a Lua script.
◆ extractArgs()
template<typename... Args>
| std::tuple< Args... > SL::Lib::Base::extractArgs |
( |
State | L | ) |
|
|
static |
Helper function extracting a list of types arguments from a Lua stack.
- Template Parameters
-
| Args | Types of the arguments |
- Parameters
-
- Returns
- std::tuple<Args...> Values of the Lua arguments
◆ registerFunctions()
| SL_SYMBOL void SL::Lib::Base::registerFunctions |
( |
SL::Runtime & | runtime | ) |
const |
Registers the functions in this library with the given runtime.
- Parameters
-
| runtime | Lua runtime to register the functions with |
The documentation for this struct was generated from the following file:
- /Users/runner/work/simple-lua/simple-lua/include/SL/Lua/Lib.hpp