]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/stream-event.hh
Run grand replace for 2015.
[lilypond.git] / lily / include / stream-event.hh
index 14a8af41dca73f2559765398d227a04445163afa..27a83ed72ff83e5f274398842029e69d2ce01fb7 100644 (file)
@@ -1,7 +1,7 @@
 /*
   This file is part of LilyPond, the GNU music typesetter.
 
-  Copyright (C) 2005--2014 Erik Sandberg <mandolaerik@gmail.com>
+  Copyright (C) 2005--2015 Erik Sandberg <mandolaerik@gmail.com>
 
   LilyPond is free software: you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -30,7 +30,12 @@ public:
   Stream_event ();
   VIRTUAL_COPY_CONSTRUCTOR (Stream_event, Stream_event);
 
-  static Stream_event *unsmob (SCM);
+  static Stream_event *unsmob (SCM s) {
+    return dynamic_cast <Stream_event *> (Prob::unsmob (s));
+  }
+  static bool is_smob (SCM s) {
+    return Prob::is_smob (s) && unsmob (s);
+  }
 
   Stream_event (SCM event_class, SCM immutable_props = SCM_EOL);
   Stream_event (SCM class_name, Input *);