]> git.donarmstrong.com Git - lilypond.git/blob - lily/swallow-engraver.cc
2003 -> 2004
[lilypond.git] / lily / swallow-engraver.cc
1 /*
2   swallow-reg.cc -- implement Swallow_engraver
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "engraver.hh"
10
11 /**
12  */
13 class Swallow_engraver : public Engraver
14 {
15 public:
16   TRANSLATOR_DECLARATIONS(Swallow_engraver);
17 protected:
18   bool try_music (Music*) ;
19 };
20
21
22
23 bool
24 Swallow_engraver::try_music (Music*) 
25 {
26   return true;
27 }
28
29 Swallow_engraver::Swallow_engraver ()
30 {
31 }
32
33 ENTER_DESCRIPTION(Swallow_engraver,
34 /* descr */       "This engraver swallows everything given to it silently. The purpose of "
35                   "this is to prevent spurious \"event junked\" warnings.",
36 /* creats*/       "",
37 /* accepts */     "general-music",
38 /* acks  */       "",
39 /* reads */       "",
40 /* write */       "");