$darkmode
lua_api.hpp File Reference
#include <filesystem>
#include <sol/protected_function_result.hpp>
#include <sol/state_view.hpp>
Include dependency graph for lua_api.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

sol::protected_function_result cloe::lua_safe_script_file (sol::state_view lua, const std::filesystem::path &filepath)
 
auto cloe::luat_cloe_engine (sol::state_view lua)
 
auto cloe::luat_cloe_engine_fs (sol::state_view lua)
 
auto cloe::luat_cloe_engine_types (sol::state_view lua)
 
auto cloe::luat_cloe_engine_initial_input (sol::state_view lua)
 
auto cloe::luat_cloe_engine_state (sol::state_view lua)
 
auto cloe::luat_cloe_engine_plugins (sol::state_view lua)
 

Detailed Description

This file contains functions for dealing with Lua after it has been set up.

See also
lua_api.cpp

Function Documentation

◆ lua_safe_script_file()

sol::protected_function_result cloe::lua_safe_script_file ( sol::state_view  lua,
const std::filesystem::path &  filepath 
)

Safely load and run a user Lua script.

◆ luat_cloe_engine()

auto cloe::luat_cloe_engine ( sol::state_view  lua)
inline

Return the cloe-engine table as it is exported into Lua.

If you make any changes to these paths, make sure to reflect it:

engine/lua/cloe-engine/init.lua
Here is the call graph for this function:
Here is the caller graph for this function: