X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=lily%2Fgdb.cc;h=d01961985252681729911af9c1f5e956183c507e;hb=ae050ca38fb9ba535b451c501859e29ad2feea33;hp=0df1e5085acb07836453f30bc07ee7fb2d64b6ca;hpb=0a92b605eb18b62d171c97f354c2101109d9e071;p=lilypond.git diff --git a/lily/gdb.cc b/lily/gdb.cc index 0df1e5085a..d019619852 100644 --- a/lily/gdb.cc +++ b/lily/gdb.cc @@ -1,14 +1,22 @@ -#include "item.hh" #include "spanner.hh" +#include "paper-column.hh" -// thanks to GDBs wonderful casting abilities, we need these: -Item* -to_item (Graphical_element* g) -{ - return dynamic_cast(g); -} -Spanner* -to_spanner (Graphical_element*g) -{ - return dynamic_cast(g); +extern "C" { + // thanks to GDBs wonderful casting abilities, we need these: + Item * + to_item (Grob *g) + { + return dynamic_cast (g); + } + Spanner * + to_spanner (Grob *g) + { + return dynamic_cast (g); + } + + Paper_column * + to_pc (Grob *g) + { + return dynamic_cast (g); + } }