]> git.donarmstrong.com Git - lilypond.git/blob - lily/swallow-engraver.cc
release: 1.5.13
[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--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "engraver.hh"
10
11 /**
12   This engraver swallows everything given to it silently. The purpose of
13   this is to prevent spurious "request junked" warnings.
14  */
15 class Swallow_engraver : public Engraver
16 {
17 public:
18   TRANSLATOR_DECLARATIONS(Swallow_engraver);
19 protected:
20   bool try_music (Music*) ;
21 };
22
23
24
25 bool
26 Swallow_engraver::try_music (Music*) 
27 {
28   return true;
29 }