lilypond-1.3.145
[lilypond.git] / lily / axis.cc
blobff8566988dafe928bcb80209d3d800c4bee22629
1 /*
2 axis.cc -- implement Axis
4 source file of the GNU LilyPond music typesetter
6 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
7 */
9 #include <assert.h>
11 #include "axes.hh"
12 #include "string.hh"
14 String
15 axis_name_str (Axis a)
17 return String (char(a + 'x'));
21 TODO inline these.
23 Axis
24 post_incr(Axis &a)
26 assert(a < NO_AXES);
27 Axis b= a;
28 a = Axis(int(a) + 1);
29 return b;
32 Axis
33 incr(Axis &a)
35 assert(a < NO_AXES);
36 a = Axis(int(a) + 1);
37 return a;