summaryrefslogtreecommitdiff
path: root/core/object
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2022-02-08 11:15:01 +0100
committerGitHub <noreply@github.com>2022-02-08 11:15:01 +0100
commitf425d403fe8be16b1a5dafbdce4dce546bdd28a4 (patch)
treedb00e586872f25461b5ff83c30d9c65b1301cb4f /core/object
parent13d4cbb87c027dde09fa11ed9d5db98e6600309d (diff)
parenta08fc442a07be2c2c668a6b6a92a501522115cd4 (diff)
Merge pull request #57066 from KoBeWi/in_the_name_of_the_custom
Diffstat (limited to 'core/object')
-rw-r--r--core/object/callable_method_pointer.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/object/callable_method_pointer.h b/core/object/callable_method_pointer.h
index 53410a9acf..3cd9ad3819 100644
--- a/core/object/callable_method_pointer.h
+++ b/core/object/callable_method_pointer.h
@@ -51,6 +51,14 @@ protected:
void _setup(uint32_t *p_base_ptr, uint32_t p_ptr_size);
public:
+ virtual StringName get_method() const {
+#ifdef DEBUG_METHODS_ENABLED
+ return StringName(text);
+#else
+ return StringName();
+#endif
+ }
+
#ifdef DEBUG_METHODS_ENABLED
void set_text(const char *p_text) {
text = p_text;