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