From 091ca39438743914eeae82efc9a0d9302e66fff2 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 9 Nov 2018 10:53:46 -0800 Subject: [PATCH] update call --- single/sol/sol.hpp | 13 +++++++++---- single/sol/sol_forward.hpp | 4 ++-- sol/call.hpp | 9 +++++++-- 3 files changed, 18 insertions(+), 8 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index d66c2b53..1aa57816 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 2018-11-09 17:41:04.453384 UTC -// This header was generated with sol v2.20.4 (revision 47bbe98) +// Generated 2018-11-09 18:52:51.075276 UTC +// This header was generated with sol v2.20.4 (revision 1f90b04) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -13141,7 +13141,7 @@ namespace sol { } template - inline int construct(lua_State* L) { + inline int construct_trampolined(lua_State* L) { static const auto& meta = usertype_traits::metatable(); int argcount = lua_gettop(L); call_syntax syntax = argcount > 0 ? stack::get_call_syntax(L, usertype_traits::user_metatable(), 1) : call_syntax::dot; @@ -13157,7 +13157,12 @@ namespace sol { stack::stack_detail::undefined_metatable umf(L, &meta[0]); umf(); - return 1; + return 1; + } + + template + inline int construct(lua_State* L) { + return detail::static_trampoline<&construct_trampolined>(L); } template diff --git a/single/sol/sol_forward.hpp b/single/sol/sol_forward.hpp index f4f3d79d..371c3873 100644 --- a/single/sol/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 2018-11-09 17:41:04.668612 UTC -// This header was generated with sol v2.20.4 (revision 47bbe98) +// Generated 2018-11-09 18:52:51.285820 UTC +// This header was generated with sol v2.20.4 (revision 1f90b04) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP diff --git a/sol/call.hpp b/sol/call.hpp index 70757819..f8d90ea5 100644 --- a/sol/call.hpp +++ b/sol/call.hpp @@ -208,7 +208,7 @@ namespace sol { } template - inline int construct(lua_State* L) { + inline int construct_trampolined(lua_State* L) { static const auto& meta = usertype_traits::metatable(); int argcount = lua_gettop(L); call_syntax syntax = argcount > 0 ? stack::get_call_syntax(L, usertype_traits::user_metatable(), 1) : call_syntax::dot; @@ -224,7 +224,12 @@ namespace sol { stack::stack_detail::undefined_metatable umf(L, &meta[0]); umf(); - return 1; + return 1; + } + + template + inline int construct(lua_State* L) { + return detail::static_trampoline<&construct_trampolined>(L); } template