]> git.donarmstrong.com Git - lilypond.git/blobdiff - lily/grob.cc
* lily/grob.cc (programming_error): add Grob::programming_error with
[lilypond.git] / lily / grob.cc
index b61e151e34ddd6927d767260e9e09ab589b4fe8b..08d263bcf6d30f966a10194dff7419c95ac176d7 100644 (file)
@@ -791,7 +791,7 @@ Grob::fixup_refpoint (SCM smob)
 }
 
 void
-Grob::warning (String s)
+Grob::warning (String s)const
 {
   SCM cause = self_scm();
   while (cause != SCM_EOL && !unsmob_music (cause))
@@ -806,7 +806,13 @@ Grob::warning (String s)
     }
   else
     ::warning (s);
-      
+}
+
+void
+Grob::programming_error (String s)const
+{
+  s = "Programming error: "  + s;
+  warning (s);
 }