From 471b5870e2968b9a26927c8f08be57fa99644539 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Wed, 28 Sep 2016 19:10:36 -0400 Subject: [PATCH] update single --- single/sol/sol.hpp | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index 54e74f81..8e69883c 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-09-26 08:01:11.472268 UTC -// This header was generated with sol v2.14.2 (revision 63093ec) +// Generated 2016-09-28 23:10:06.808593 UTC +// This header was generated with sol v2.14.5 (revision 86664b4) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -10253,7 +10253,7 @@ namespace sol { indexbase(&usertype_detail::simple_core_indexing_call), newindexbase(&usertype_detail::simple_core_indexing_call), indexbaseclasspropogation(usertype_detail::walk_all_bases), newindexbaseclasspropogation(&usertype_detail::walk_all_bases), baseclasscheck(nullptr), baseclasscast(nullptr), - mustindex(false), secondarymeta(false) { + mustindex(true), secondarymeta(true) { (void)detail::swallow{ 0, (add(L, detail::forward_get(args), detail::forward_get(args)),0)... }; @@ -10547,7 +10547,7 @@ namespace sol { if (k <= src.size() && k > 0) { --k; std::advance(it, k); - return stack::push(L, *it); + return stack::push_reference(L, *it); } } return stack::push(L, nil); @@ -10557,7 +10557,7 @@ namespace sol { K k = stack::get(L, 2); --k; std::advance(it, k); - return stack::push(L, *it); + return stack::push_reference(L, *it); #endif // Safety } @@ -10606,8 +10606,7 @@ namespace sol { if (it == end(source)) { return 0; } - int p = stack::push(L, k + 1); - p += stack::push(L, *it); + int p = stack::multi_push_reference(L, k + 1, *it); std::advance(it, 1); return p; } @@ -10704,7 +10703,7 @@ namespace sol { auto it = detail::find(src, *k); if (it != end(src)) { auto& v = *it; - return stack::push(L, v.second); + return stack::push_reference(L, v.second); } } return stack::push(L, nil);