From e63f8405ce04642e1994452a8948c27d4dddd82a Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 26 Jan 2019 03:23:38 -0500 Subject: [PATCH 1/2] yieldables weee --- sol/call.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/sol/call.hpp b/sol/call.hpp index f8d90ea5..3f620d6b 100644 --- a/sol/call.hpp +++ b/sol/call.hpp @@ -716,6 +716,14 @@ namespace sol { } }; + template + struct lua_call_wrapper, is_index, is_variable, checked, boost, clean_stack, C> { + template + static int call(lua_State* L, F&& f) { + return lua_call_wrapper, is_index, is_variable, checked, boost, clean_stack>{}.call(L, f.func); + } + }; + template struct lua_call_wrapper, is_index, is_variable, checked, boost, clean_stack, C> { template From 0c095d40908d00ea7a916da561391109f93a83c1 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Sat, 26 Jan 2019 03:26:38 -0500 Subject: [PATCH 2/2] move everything back.... again! --- single/{ => sol}/sol.hpp | 12 ++++++++++-- single/{ => sol}/sol_forward.hpp | 4 ++-- 2 files changed, 12 insertions(+), 4 deletions(-) rename single/{ => sol}/sol.hpp (97%) rename single/{ => sol}/sol_forward.hpp (95%) diff --git a/single/sol.hpp b/single/sol/sol.hpp similarity index 97% rename from single/sol.hpp rename to single/sol/sol.hpp index 3d803c78..7444d0fb 100644 --- a/single/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 2019-01-14 12:36:40.331405 UTC -// This header was generated with sol v2.20.6 (revision d990958) +// Generated 2019-01-26 08:24:35.370911 UTC +// This header was generated with sol v2.20.6 (revision e63f840) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -13717,6 +13717,14 @@ namespace sol { } }; + template + struct lua_call_wrapper, is_index, is_variable, checked, boost, clean_stack, C> { + template + static int call(lua_State* L, F&& f) { + return lua_call_wrapper, is_index, is_variable, checked, boost, clean_stack>{}.call(L, f.func); + } + }; + template struct lua_call_wrapper, is_index, is_variable, checked, boost, clean_stack, C> { template diff --git a/single/sol_forward.hpp b/single/sol/sol_forward.hpp similarity index 95% rename from single/sol_forward.hpp rename to single/sol/sol_forward.hpp index 63cc52e2..c1a95626 100644 --- a/single/sol_forward.hpp +++ b/single/sol/sol_forward.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 2019-01-14 12:36:41.033556 UTC -// This header was generated with sol v2.20.6 (revision d990958) +// Generated 2019-01-26 08:24:35.663196 UTC +// This header was generated with sol v2.20.6 (revision e63f840) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP