]> git.donarmstrong.com Git - lilypond.git/blobdiff - flower/include/pqueue.hh
Issue 2787: Sanitize usage of -DDEBUG, -DNDEBUG and assert
[lilypond.git] / flower / include / pqueue.hh
index 39e0cbe743a43508f4d0f60c8c9ff79701b35869..6f1ebc53b60669ec061a3335e47637447a1d49cd 100644 (file)
@@ -69,7 +69,7 @@ public:
   }
   void OK () const
   {
-#ifndef NDEBUG
+#ifdef DEBUG
     for (vsize i = 2; i <= size (); i++)
       assert (compare (elt (i / 2), elt (i)) <= 0);
 #endif