]> git.donarmstrong.com Git - lilypond.git/blob - lily/swallow-engraver.cc
Run `make grand-replace'.
[lilypond.git] / lily / swallow-engraver.cc
1 /*
2   swallow-engraver.cc -- implement Swallow_engraver
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1997--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #include "engraver.hh"
10
11 class Swallow_engraver : public Engraver
12 {
13 public:
14   TRANSLATOR_DECLARATIONS (Swallow_engraver);
15 protected:
16   bool try_music (Music *);
17 };
18
19 bool
20 Swallow_engraver::try_music (Music *)
21 {
22   return true;
23 }
24
25 Swallow_engraver::Swallow_engraver ()
26 {
27 }
28
29 #include "translator.icc"
30
31 ADD_TRANSLATOR (Swallow_engraver,
32                 /* doc */
33                 "This engraver swallows everything given to it silently."
34                 "  The purpose of this is to prevent spurious @q{event junked}"
35                 " warnings.",
36
37                 /* create */
38                 "",
39
40                 /* read */
41                 "",
42
43                 /* write */
44                 ""
45                 );