]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/performance.hh
Run grand replace for 2015.
[lilypond.git] / lily / include / performance.hh
index 9c3ce3742d99c6b5442aff24236995f873c0b0fb..14c811b150231cc2867de9ecdec455cf9d068f9c 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 1997--2012 Jan Nieuwenhuizen <janneke@gnu.org>
+  Copyright (C) 1997--2015 Jan Nieuwenhuizen <janneke@gnu.org>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -31,6 +31,13 @@ public:
   ~Performance ();
   DECLARE_CLASSNAME (Performance);
 
+  static Performance *unsmob (SCM p) {
+    return dynamic_cast <Performance *> (Music_output::unsmob (p));
+  }
+  static bool is_smob (SCM p) {
+    return Music_output::is_smob (p) && unsmob (p);
+  }
+
   void add_element (Audio_element *p);
   virtual void process ();
   void remap_grace_durations ();