/*
This file is part of LilyPond, the GNU music typesetter.
- Copyright (C) 1996--2014 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
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_;