X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fperformer.cc;h=bc6bd3b5ada39d6518a56745d68f2e7332fb09cd;hb=058370efc7e9710f149d0f444328bb1fcd7bdec1;hp=7dfca933286b0b79561d6e33e37c76a8293bca1e;hpb=b7a0cffbf9d1069860368f289a5b50e9d1d90ba8;p=lilypond.git diff --git a/lily/performer.cc b/lily/performer.cc index 7dfca93328..bc6bd3b5ad 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--2009 Han-Wen Nienhuys + Copyright (C) 1996--2014 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)); +}