From 023e23f9a4594f84202a7e56366bf1e40e2e0f0c Mon Sep 17 00:00:00 2001 From: ThePhD Date: Fri, 11 Aug 2017 18:26:13 -0400 Subject: [PATCH] update single --- single/sol/sol.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/single/sol/sol.hpp b/single/sol/sol.hpp index ae80b500..1bd76c63 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-08-11 22:03:08.549881 UTC -// This header was generated with sol v2.18.0 (revision 2e5d319) +// Generated 2017-08-11 22:24:57.365154 UTC +// This header was generated with sol v2.18.0 (revision 7af8b4e) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -7518,7 +7518,11 @@ namespace sol { #endif #if defined(SOL_CHECK_ARGUMENTS) && !defined(SOL_NO_CHECK_NUMBER_PRECISION) if (static_cast(std::llround(static_cast(value))) != value) { - luaL_error(L, "integer value will be misrepresented in lua"); +#ifndef SOL_NO_EXCEPTIONS + throw sol::error("The integer will be misrepresented in lua."); +#else + assert(false && "The integer will be misrepresented in lua."); +#endif } #endif lua_pushnumber(L, static_cast(value));