]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/arithmetic-operator.hh
*** empty log message ***
[lilypond.git] / flower / include / arithmetic-operator.hh
1 /*   
2   arithmetic-operator.hh -- declare 
3   
4   source file of the Flower Library
5   
6   (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7   
8  */
9
10 #ifndef ARITHMETIC_OPERATOR_HH
11 #define ARITHMETIC_OPERATOR_HH
12
13 #define IMPLEMENT_ARITHMETIC_OPERATOR(type, op)  \
14 inline type \
15 operator op (type a1, type const& a2)           \
16 {                                               \
17   a1 op ## = a2;                                        \
18   return a1;                                    \
19 }
20
21 #endif /* ARITHMETIC_OPERATOR_HH */
22