]> git.donarmstrong.com Git - lilypond.git/blob - flower/axis.cc
release: 1.3.91
[lilypond.git] / flower / axis.cc
1 /*
2   axis.cc -- implement Axis
3
4
5
6   (c)  1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include <assert.h>
10 #include "axes.hh"
11 #include "string.hh"
12
13 String
14 axis_name_str (Axis a)
15 {
16   return to_str (char(a + 'x'));
17 }
18
19 /*
20   TODO inline these.
21  */
22 Axis
23 post_incr(Axis &a)
24 {
25   assert(a < NO_AXES);
26   Axis b= a;
27   a = Axis(int(a) + 1);
28   return b;
29 }
30
31 Axis
32 incr(Axis &a)
33 {
34   assert(a < NO_AXES);
35   a = Axis(int(a) + 1);
36   return a;
37 }
38