]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4835: Move Callback_wrapper class to separate file and simplify
authorDavid Kastrup <dak@gnu.org>
Wed, 27 Apr 2016 17:41:06 +0000 (19:41 +0200)
committerDavid Kastrup <dak@gnu.org>
Mon, 2 May 2016 18:29:16 +0000 (20:29 +0200)
commit36fba3138858ee42ba3f03e3de0efa1d1f49d147
treee0bcf50ea93c8d949dbd857772ecb20885e5b1f6
parentf947f7e126ccaaea212a7e65ed458a05555c771e
Issue 4835: Move Callback_wrapper class to separate file and simplify

Callback_wrapper::make_smob now is only templated on the address of
the (static) trampoline function.  Moving the trampolining to the
actual functions in question makes callbacks quite more versatile and
transparent and obviates the previous need for friend declarations due
to mixing internals of other classes into the Callback_wrapper
definition.
lily/callback.cc [new file with mode: 0644]
lily/include/callback.hh [new file with mode: 0644]
lily/include/listener.hh
lily/include/translator.hh
lily/include/translator.icc
lily/listener.cc