| 32 | } |
| 33 | |
| 34 | void LuaHandler::ExecuteString(const std::string& command) |
| 35 | { |
| 36 | auto result = _lua->safe_script(command, sol::environment(_lua->lua_state(), sol::create, _lua->globals()), sol::script_pass_on_error); |
| 37 | if (!result.valid()) |
| 38 | { |
| 39 | sol::error error = result; |
| 40 | throw TENScriptException{ error.what() }; |
| 41 | } |
| 42 | } |
no test coverage detected