]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/include/direction.hh
patch::: 1.1.29.jcn3: sleur volg muziek fix
[lilypond.git] / lily / include / direction.hh
index 8a59ac52f7c5d91b4274936c8493e2f3d62d17d1..3b2029d3c89a4c52659ef008e36fcb7af944b4d5 100644 (file)
@@ -27,6 +27,19 @@ enum Direction
   STOP = 1
 };
 
+inline Direction
+other_dir (Direction const d)
+{
+  return (Direction)(-d);
+}
+
+inline Direction
+operator - (Direction const d)
+{
+  return other_dir (d);
+}
+
+// huh?
 inline Direction
 flip (Direction *i) {
   if (*i == (Direction)1)