From 889a45d0b399007a070de61e03668dc07808fbef Mon Sep 17 00:00:00 2001 From: ThePhD Date: Mon, 20 Feb 2017 03:45:47 -0500 Subject: [PATCH] update single --- single/sol/sol.hpp | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index ff868d73..75de773e 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 2017-02-19 09:59:38.638408 UTC -// This header was generated with sol v2.15.8 (revision 0c8ec82) +// Generated 2017-02-20 08:45:30.715552 UTC +// This header was generated with sol v2.15.9 (revision b7b6366) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -7621,6 +7621,12 @@ namespace sol { // end of sol/property.hpp namespace sol { + namespace function_detail { + inline int no_construction_error(lua_State* L) { + return luaL_error(L, "sol: cannot call this constructor (tagged as non-constructible)"); + } + } + namespace call_detail { template @@ -7837,7 +7843,7 @@ namespace sol { template struct agnostic_lua_call_wrapper { static int call(lua_State* L, const no_construction&) { - return luaL_error(L, "sol: cannot call this constructor (tagged as non-constructible)"); + return function_detail::no_construction_error(L); } }; @@ -9017,6 +9023,18 @@ namespace sol { } }; + template <> + struct pusher { + static int push(lua_State* L, no_construction) { + lua_CFunction cf = &function_detail::no_construction_error; + return stack::push(L, cf); + } + + static int push(lua_State* L, no_construction c, function_detail::call_indicator) { + return push(L, c); + } + }; + template struct pusher>> { static int push(lua_State* L, detail::tagged>) {