From b9acaddd786fabeeacf705989539c25332b7bba6 Mon Sep 17 00:00:00 2001 From: ThePhD Date: Wed, 8 Jan 2020 06:40:33 -0500 Subject: [PATCH] Stack aligned function should be safe, if possible. --- include/sol/forward.hpp | 3 ++- single/include/sol/forward.hpp | 7 ++++--- single/include/sol/sol.hpp | 7 ++++--- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/include/sol/forward.hpp b/include/sol/forward.hpp index 1e81da74..123a2e75 100644 --- a/include/sol/forward.hpp +++ b/include/sol/forward.hpp @@ -121,12 +121,13 @@ namespace sol { using function = protected_function; using main_function = main_protected_function; using stack_function = stack_protected_function; + using stack_aligned_function = stack_aligned_safe_function; #else using function = unsafe_function; using main_function = main_unsafe_function; using stack_function = stack_unsafe_function; -#endif using stack_aligned_function = stack_aligned_unsafe_function; +#endif using stack_aligned_stack_handler_function = basic_protected_function; struct unsafe_function_result; diff --git a/single/include/sol/forward.hpp b/single/include/sol/forward.hpp index bc35c701..2d21dfe8 100644 --- a/single/include/sol/forward.hpp +++ b/single/include/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-12-25 18:24:10.892183 UTC -// This header was generated with sol v3.2.0 (revision 36972a9) +// Generated 2020-01-08 11:39:55.025761 UTC +// This header was generated with sol v3.2.0 (revision 43f215c) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_FORWARD_HPP @@ -343,12 +343,13 @@ namespace sol { using function = protected_function; using main_function = main_protected_function; using stack_function = stack_protected_function; + using stack_aligned_function = stack_aligned_safe_function; #else using function = unsafe_function; using main_function = main_unsafe_function; using stack_function = stack_unsafe_function; -#endif using stack_aligned_function = stack_aligned_unsafe_function; +#endif using stack_aligned_stack_handler_function = basic_protected_function; struct unsafe_function_result; diff --git a/single/include/sol/sol.hpp b/single/include/sol/sol.hpp index 8b82c0b0..e867318b 100644 --- a/single/include/sol/sol.hpp +++ b/single/include/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-12-25 18:24:10.331683 UTC -// This header was generated with sol v3.2.0 (revision 36972a9) +// Generated 2020-01-08 11:39:54.499598 UTC +// This header was generated with sol v3.2.0 (revision 43f215c) // https://github.com/ThePhD/sol2 #ifndef SOL_SINGLE_INCLUDE_HPP @@ -369,12 +369,13 @@ namespace sol { using function = protected_function; using main_function = main_protected_function; using stack_function = stack_protected_function; + using stack_aligned_function = stack_aligned_safe_function; #else using function = unsafe_function; using main_function = main_unsafe_function; using stack_function = stack_unsafe_function; -#endif using stack_aligned_function = stack_aligned_unsafe_function; +#endif using stack_aligned_stack_handler_function = basic_protected_function; struct unsafe_function_result;