]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/performer.cc
Merge branch 'master' into lilypond/translation
[lilypond.git] / lily / performer.cc
index 7dfca933286b0b79561d6e33e37c76a8293bca1e..871367af158673b72d5ad22f0ab99c77128ee8e2 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1996--2009 Han-Wen Nienhuys <hanwen@xs4all.nl>
+  Copyright (C) 1996--2011 Han-Wen Nienhuys <hanwen@xs4all.nl>
   Jan Nieuwenhuizen <janneke@gnu.org>
 
   LilyPond is free software: you can redistribute it and/or modify
@@ -19,6 +19,7 @@
 */
 
 #include "context.hh"
+#include "performer.hh"
 #include "performer-group.hh"
 #include "warn.hh"
 
@@ -48,3 +49,9 @@ Performer::announce_element (Audio_element_info i)
 
   get_daddy_performer ()->announce_element (i);
 }
+
+Performer *
+unsmob_performer (SCM perf)
+{
+  return dynamic_cast<Performer *> (unsmob_translator (perf));
+}