25 #ifndef TASKOLIB_EXECUTE_LUA_SCRIPT_H_
26 #define TASKOLIB_EXECUTE_LUA_SCRIPT_H_
30 #include <gul14/expected.h>
32 #include "sol/sol.hpp"
47 gul14::expected<sol::object, std::string>
61 gul14::expected<sol::load_result, std::string>
Namespace task contains all Taskolib functions and classes.
Definition: CommChannel.h:33
gul14::expected< sol::load_result, std::string > load_lua_script(sol::state &lua, sol::string_view script)
Load a Lua script into the given Lua state and check its syntax without running it.
Definition: execute_lua_script.cc:87
gul14::expected< sol::object, std::string > execute_lua_script(sol::state &lua, sol::string_view script)
Execute a Lua script safely, intercepting all possible exceptions that may occur during its execution...
Definition: execute_lua_script.cc:61