From d97dc518d3922c131db72feb1d9fefa534794e3b Mon Sep 17 00:00:00 2001 From: Melissa Geels Date: Wed, 2 Mar 2022 14:44:23 +0100 Subject: [PATCH] Fixed crash on release builds due to missing argument type information --- include/godot_cpp/core/method_bind.hpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/include/godot_cpp/core/method_bind.hpp b/include/godot_cpp/core/method_bind.hpp index b8f2bf23..b5dbbf72 100644 --- a/include/godot_cpp/core/method_bind.hpp +++ b/include/godot_cpp/core/method_bind.hpp @@ -268,9 +268,7 @@ public: MethodBindT(void (MB_T::*p_method)(P...)) { method = p_method; -#ifdef DEBUG_METHODS_ENABLED generate_argument_types(sizeof...(P)); -#endif // DEBUG_METHODS_ENABLED set_argument_count(sizeof...(P)); } }; @@ -346,9 +344,7 @@ public: MethodBindTC(void (MB_T::*p_method)(P...) const) { method = p_method; -#ifdef DEBUG_METHODS_ENABLED generate_argument_types(sizeof...(P)); -#endif // DEBUG_METHODS_ENABLED set_argument_count(sizeof...(P)); } }; @@ -430,9 +426,7 @@ public: MethodBindTR(R (MB_T::*p_method)(P...)) { method = p_method; -#ifdef DEBUG_METHODS_ENABLED generate_argument_types(sizeof...(P)); -#endif // DEBUG_METHODS_ENABLED set_argument_count(sizeof...(P)); set_return(true); } @@ -515,9 +509,7 @@ public: MethodBindTRC(R (MB_T::*p_method)(P...) const) { method = p_method; -#ifdef DEBUG_METHODS_ENABLED generate_argument_types(sizeof...(P)); -#endif // DEBUG_METHODS_ENABLED set_argument_count(sizeof...(P)); set_return(true); }