]> git.donarmstrong.com Git - lilypond.git/blob - lily/include/protected-scm.hh
Run `make grand-replace'.
[lilypond.git] / lily / include / protected-scm.hh
1 /*
2   protected-scm.hh -- declare Protected_scm
3
4   source file of the GNU LilyPond music typesetter
5
6   (c) 1998--2008 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef PROTECTED_SCM_HH
10 #define PROTECTED_SCM_HH
11
12 #include "lily-guile.hh"
13
14 /*
15   Mix GUILE GC with C++ ctors and dtors.
16 */
17 class Protected_scm
18 {
19   SCM object_;
20 public:
21   Protected_scm ();
22   Protected_scm (SCM);
23   Protected_scm (Protected_scm const &);
24   ~Protected_scm ();
25   Protected_scm &operator = (SCM);
26   Protected_scm &operator = (Protected_scm const &);
27   operator SCM () const;
28   SCM to_SCM () const;
29 };
30
31 #endif /* PROTECTED_SCM_HH */