]> git.donarmstrong.com Git - lilypond.git/blob - lily/swallow-engraver.cc
* lily/context.cc (where_defined): also assign value in
[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--2005 Han-Wen Nienhuys <hanwen@cs.uu.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                 /* descr */ "This engraver swallows everything given to it silently. The purpose of "
33                 "this is to prevent spurious \"event junked\" warnings.",
34                 /* creats*/ "",
35                 /* accepts */ "general-music",
36                 /* reads */ "",
37                 /* write */ "");