summaryrefslogtreecommitdiff
path: root/lily/gdb.cc
blob: d01961985252681729911af9c1f5e956183c507e (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "spanner.hh"
#include "paper-column.hh"

extern "C" {
  // thanks to GDBs wonderful casting abilities, we need these:
  Item *
  to_item (Grob *g)
  {
    return dynamic_cast<Item *> (g);
  }
  Spanner *
  to_spanner (Grob *g)
  {
    return dynamic_cast<Spanner *> (g);
  }

  Paper_column *
  to_pc (Grob *g)
  {
    return dynamic_cast<Paper_column *> (g);
  }
}