lilypond-1.1.31
[lilypond.git] / hdr / class-name.hh
blob26da52dc0e89c832db824bf8313ad3d8fe9b69d6
1 /*
2 class-name.hh -- declare
4 source file of the LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
10 #ifndef CLASS_NAME_HH
11 #define CLASS_NAME_HH
13 /// a macro to declare the classes name as a static and virtual function.
14 #define NAME_MEMBERS(c) \
15 static const char *static_name(){ return #c; }\
16 virtual const char *name() const{ return c::static_name(); } \
17 int a_stupid_nonexistent_function_to_allow_the_semicolon_come_out()
19 #endif // CLASS-NAME_HH