X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=lily%2Finclude%2Fglobal-context.hh;h=75b52c95ae01f9fd943e46ed65add4fd4615be99;hb=91723da7360b372904979b2d572f3f941ebbc924;hp=f940561739a4e2b5800caba811c2f7b4d4e0d4f3;hpb=0fe24db3936774a8fb913cb14c997036db7aeb1c;p=lilypond.git diff --git a/lily/include/global-context.hh b/lily/include/global-context.hh index f940561739..75b52c95ae 100644 --- a/lily/include/global-context.hh +++ b/lily/include/global-context.hh @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1997--2014 Han-Wen Nienhuys + Copyright (C) 1997--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 @@ -42,19 +42,12 @@ public: void apply_finalizations (); void add_finalization (SCM); - DECLARE_LISTENER (prepare); + void prepare (SCM); virtual SCM get_output (); virtual Output_def *get_output_def () const; virtual Moment now_mom () const; virtual Context *get_default_interpreter (const string &context_id = ""); - static Global_context *unsmob (SCM x) { - return dynamic_cast (Context::unsmob (x)); - } - static bool is_smob (SCM x) { - return Context::is_smob (x) && unsmob (x); - } - Moment previous_moment () const; protected: Moment prev_mom_;