]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.48
authorfred <fred>
Tue, 10 Mar 1998 22:36:10 +0000 (22:36 +0000)
committerfred <fred>
Tue, 10 Mar 1998 22:36:10 +0000 (22:36 +0000)
flower/include/arithmetic-operator.hh [new file with mode: 0644]

diff --git a/flower/include/arithmetic-operator.hh b/flower/include/arithmetic-operator.hh
new file mode 100644 (file)
index 0000000..6b95340
--- /dev/null
@@ -0,0 +1,22 @@
+/*   
+  arithmetic-operator.hh -- declare 
+  
+  source file of the Flower Library
+  
+  (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+  
+ */
+
+#ifndef ARITHMETIC_OPERATOR_HH
+#define ARITHMETIC_OPERATOR_HH
+
+#define IMPLEMENT_ARITHMETIC_OPERATOR(type, op)  \
+inline type \
+operator op (type a1, type const& a2)          \
+{                                              \
+  a1 op ## = a2;                                       \
+  return a1;                                   \
+}
+
+#endif /* ARITHMETIC_OPERATOR_HH */
+