]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/spanner.hh
Run grand replace for 2015.
[lilypond.git] / lily / include / spanner.hh
index b67dde0843108730489a6f33078a9555ceb83314..788b0e46ee46e1ef4889862b58d8c1bd4ed5a04e 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1996--2011 Han-Wen Nienhuys
+  Copyright (C) 1996--2015 Han-Wen Nienhuys
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -52,6 +52,13 @@ public:
   DECLARE_SCHEME_CALLBACK (bounds_width, (SCM));
   DECLARE_SCHEME_CALLBACK (kill_zero_spanned_time, (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_;
 
   vsize get_break_index () const;