diff options
author | David Kastrup <dak@gnu.org> | 2015-04-30 20:48:09 +0200 |
---|---|---|
committer | David Kastrup <dak@gnu.org> | 2015-05-02 10:56:34 +0200 |
commit | 90d3233da87b372e02690978f89b2add3863fba6 (patch) | |
tree | f23b62114ceffb3b5db566d140fcf7d446856ff6 /lily/translator-dispatch-list.cc | |
parent | 2545fab01a601743bb3ecc18942cf14263ccfc6c (diff) |
Issue 4360: Reorganize smob initialization to make it more reliable
This change is a nuisance in that it requires an explicit call to
ADD_SMOB_INIT for each Scheme-related class.
However, this setup guarantees that at the point Scheme execution
commences, all predicates of the likes of "ly:grob?" will be present.
It also guarantees that if a particular type should seem required during
_other_ initializations that happen to depend on the type and get
executed earlier, it will be provided early.
Diffstat (limited to 'lily/translator-dispatch-list.cc')
-rw-r--r-- | lily/translator-dispatch-list.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lily/translator-dispatch-list.cc b/lily/translator-dispatch-list.cc index ed968c571a..02de105da9 100644 --- a/lily/translator-dispatch-list.cc +++ b/lily/translator-dispatch-list.cc @@ -20,6 +20,7 @@ #include "translator-dispatch-list.hh" #include "engraver.hh" +ADD_SMOB_INIT (Engraver_dispatch_list); void Engraver_dispatch_list::apply (Grob_info gi) |