diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-11 12:00:35 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-09-11 12:04:14 -0400 |
commit | 56f4e1513e9bd3efa3afb9061a8252fbd38933ee (patch) | |
tree | e2e3064d53af1724c7b9bf1f265f0a7b425c0066 /libs/pbd/pbd/signals.py | |
parent | 5dd5bb783072d0ed90e4bd71f8f20acd10802ac8 (diff) |
provide compile-time-enabled/disabled debugging of connections being made to PBD::Signal via PBD::SignalBase::set_debug_connection()
Diffstat (limited to 'libs/pbd/pbd/signals.py')
-rw-r--r-- | libs/pbd/pbd/signals.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/pbd/pbd/signals.py b/libs/pbd/pbd/signals.py index 24640fca72..caf3128bfa 100644 --- a/libs/pbd/pbd/signals.py +++ b/libs/pbd/pbd/signals.py @@ -286,6 +286,11 @@ def signal(f, n, v): print(""" boost::shared_ptr<Connection> _connect (slot_function_type f) { +#ifdef DEBUG_PBD_SIGNAL_CONNECTIONS + if (_debug_connection) { + PBD::stacktrace (std::cerr, 10); + } +#endif boost::shared_ptr<Connection> c (new Connection (this)); Glib::Threads::Mutex::Lock lm (_mutex); _slots[c] = f; |