From 8c8c7d1ee1d0efc07cc9b051a77b5c19392d9089 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sun, 30 Oct 2016 05:59:37 -0400 Subject: [PATCH] update single --- single/sol/sol.hpp | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 3c1970d0..989e7a9e 100644 --- a/single/sol/sol.hpp +++ b/single/sol/sol.hpp @@ -20,8 +20,8 @@ // CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // This file was generated with a script. -// Generated 2016-10-30 08:39:55.311816 UTC -// This header was generated with sol v2.14.12 (revision 76cae57) +// Generated 2016-10-30 09:59:20.343998 UTC +// This header was generated with sol v2.14.12 (revision c9728b7) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -12117,6 +12117,16 @@ namespace sol { return require_core(key, [this, &filename]() {stack::script_file(L, filename); }, create_global); } + protected_function_result do_string(const std::string& code) { + sol::protected_function pf = load(code); + return pf(); + } + + protected_function_result do_file(const std::string& filename) { + sol::protected_function pf = load_file(filename); + return pf(); + } + function_result script(const std::string& code) { int index = (::std::max)(lua_gettop(L), 1); stack::script(L, code);