]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/spanner.hh
Merge remote branch 'origin/master' into release/unstable
[lilypond.git] / lily / include / spanner.hh
index b56cc2264de02372fa8ae4f41fc7881bd73f8a75..f618e9c58ef3f8ef1fb8cbfe701518df2a204754 100644 (file)
@@ -52,7 +52,12 @@ public:
   DECLARE_SCHEME_CALLBACK (bounds_width, (SCM));
   DECLARE_SCHEME_CALLBACK (kill_zero_spanned_time, (SCM));
 
-  static Spanner *unsmob (SCM);
+  static Spanner *unsmob (SCM s) {
+    return dynamic_cast <Spanner *> (Grob::unsmob (s));
+  }
+  static bool is_smob (SCM s) {
+    return Grob::is_smob (s) && unsmob (s);
+  }
 
   vector<Spanner *> broken_intos_;