diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-02-21 14:53:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-21 14:53:24 +0100 |
commit | 0447d6fc8edfd636fa6c859d32e76ec8a760f42e (patch) | |
tree | d441d6bd2190b79607b953542edd1295e61ee078 /core/class_db.h | |
parent | 7ac0973e9abb308b91597dd8881aeed62682733c (diff) | |
parent | 04bb6a708a5b68ed199e5caa92d16a50992caf52 (diff) |
Merge pull request #36393 from reduz/callable-method-pointer
New callable_mp macro, for signals to call method pointers directly.
Diffstat (limited to 'core/class_db.h')
-rw-r--r-- | core/class_db.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/core/class_db.h b/core/class_db.h index 404b04f2d0..398eca9132 100644 --- a/core/class_db.h +++ b/core/class_db.h @@ -35,13 +35,15 @@ #include "core/object.h" #include "core/print_string.h" -/** To bind more then 6 parameters include this: +/** To bind more then 6 parameters include this: * #include "core/method_bind_ext.gen.inc" */ -#define DEFVAL(m_defval) (m_defval) +// Makes callable_mp readily available in all classes connecting signals. +// Needs to come after method_bind and object have been included. +#include "core/callable_method_pointer.h" -//#define SIMPLE_METHODDEF +#define DEFVAL(m_defval) (m_defval) #ifdef DEBUG_METHODS_ENABLED |