$darkmode
#include <iostream>#include <memory>#include <optional>#include <string>#include <vector>#include <sol/state.hpp>#include <sol/state_view.hpp>#include <sol/table.hpp>#include <fable/environment.hpp>Go to the source code of this file.
Classes | |
| struct | cloe::LuaOptions |
Functions | |
| sol::state | cloe::new_lua (const LuaOptions &opt, Stack &stack) |
| void | cloe::merge_lua (sol::state_view &lua, const std::string &filepath) |
| void | cloe::register_lib_fs (sol::table &lua) |
| void | cloe::register_usertype_duration (sol::table &lua) |
| void | cloe::register_usertype_sync (sol::table &lua) |
| void | cloe::register_usertype_stack (sol::table &lua) |
This file contains function definitions required to set up the Lua API.
| void cloe::merge_lua | ( | sol::state_view & | lua, |
| const std::string & | filepath | ||
| ) |
Merge the provided Lua file into the existing Stack, respecting StackOptions.
| sol::state cloe::new_lua | ( | const LuaOptions & | opt, |
| Stack & | s | ||
| ) |
Create a new lua state.
Currently this requires a fully configured Stack file.
| void cloe::register_lib_fs | ( | sol::table & | lua | ) |
Define the filesystem library functions in the given table.
The following functions are made available:
| void cloe::register_usertype_duration | ( | sol::table & | lua | ) |
Define cloe::Duration usertype in Lua.
| void cloe::register_usertype_stack | ( | sol::table & | lua | ) |
Define cloe::Stack usertype in Lua.
| void cloe::register_usertype_sync | ( | sol::table & | lua | ) |
Define cloe::Sync usertype in Lua.