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/simple-spacer.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/simple-spacer.cc')
-rw-r--r-- | lily/simple-spacer.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lily/simple-spacer.cc b/lily/simple-spacer.cc index ada16593aa..ce587c5fdd 100644 --- a/lily/simple-spacer.cc +++ b/lily/simple-spacer.cc @@ -32,6 +32,8 @@ #include "spring.hh" #include "warn.hh" +ADD_SMOB_INIT (Simple_spacer); + /* A simple spacing constraint solver. The approach: |