X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformer.cc;h=d6ea9bd4d9bdd5a6432fbeb2577b1b7692daf563;hb=6421a3ea12cf519b165afc3700a86058bdcc381d;hp=c177f9e975e2760df30700a2470095ccc00c8313;hpb=bc95f4434f760d41191341ab4508b2064eb19025;p=lilypond.git diff --git a/lily/performer.cc b/lily/performer.cc index c177f9e975..d6ea9bd4d9 100644 --- a/lily/performer.cc +++ b/lily/performer.cc @@ -1,7 +1,7 @@ /* This file is part of LilyPond, the GNU music typesetter. - Copyright (C) 1996--2010 Han-Wen Nienhuys + Copyright (C) 1996--2012 Han-Wen Nienhuys Jan Nieuwenhuizen LilyPond is free software: you can redistribute it and/or modify @@ -19,10 +19,10 @@ */ #include "context.hh" +#include "performer.hh" #include "performer-group.hh" #include "warn.hh" - Performer_group * Performer::get_daddy_performer () const { @@ -48,3 +48,9 @@ Performer::announce_element (Audio_element_info i) get_daddy_performer ()->announce_element (i); } + +Performer * +unsmob_performer (SCM perf) +{ + return dynamic_cast (unsmob_translator (perf)); +}