2 interface.hh -- declare Interface
4 source file of the GNU LilyPond music typesetter
6 (c) 2002--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include <libguile.h> /* SCM */
15 void add_interface (const char * symbol,
19 SCM ly_add_interface (SCM, SCM, SCM);
21 #define ADD_INTERFACE(cl,a,b,c) \
22 bool cl::has_interface(Grob*me)\
24 return me->internal_has_interface (ly_symbol2scm (a));\
26 void cl ## _init_ifaces() {\
27 add_interface(a,b,c);\
29 ADD_SCM_INIT_FUNC(cl ## ifaces, cl ## _init_ifaces);\
32 #endif /* INTERFACE_HH */