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