]> git.donarmstrong.com Git - lilypond.git/blob - flower/include/arithmetic-operator.hh
3e5238b7b46ed0ab4922d302513e6e1247a0fb12
[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--2007 Han-Wen Nienhuys <hanwen@xs4all.nl>
7 */
8
9 #ifndef ARITHMETIC_OPERATOR_HH
10 #define ARITHMETIC_OPERATOR_HH
11
12 #define IMPLEMENT_ARITHMETIC_OPERATOR(type, op) \
13   inline type                                   \
14   operator op (type a1, type const &a2)         \
15   {                                             \
16     a1 op ## = a2;                              \
17     return a1;                                  \
18   }
19
20 #endif /* ARITHMETIC_OPERATOR_HH */
21