]> git.donarmstrong.com Git - lilypond.git/commit
Issue 4400: Rework LY_DECLARE_SMOB_PROC to declare a member function
authorDavid Kastrup <dak@gnu.org>
Sun, 17 May 2015 10:04:32 +0000 (12:04 +0200)
committerDavid Kastrup <dak@gnu.org>
Fri, 22 May 2015 08:41:06 +0000 (10:41 +0200)
commit1a3796c7166c453fc1ef5d30858e6bbb88fdb59f
treef47eb5fa3e4d9e83844ce6ce2b4809ff770f5386
parentbe4b87596f425aae78509a6a5f57d4f1eafe5c97
Issue 4400: Rework LY_DECLARE_SMOB_PROC to declare a member function

This is nicer to work with.  LY_DECLARE_SMOB_PROC now needs to
additionally get the class name for declaring the smob procedure: this
is astonishingly hard to avoid.  Moving the initialization out of
Smob_base<Super>::init into a separate routine smob_proc_init defined by
LY_DECLARE_SMOB_PROC considerably simplifies the initialization.
lily/include/listener.hh
lily/include/smobs.hh
lily/include/smobs.tcc
lily/unpure-pure-container.cc