]> granicus.if.org Git - postgis/commitdiff
Protect DEBUG lines in compile-time conditional
authorSandro Santilli <strk@keybit.net>
Tue, 24 Jan 2012 17:29:07 +0000 (17:29 +0000)
committerSandro Santilli <strk@keybit.net>
Tue, 24 Jan 2012 17:29:07 +0000 (17:29 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@8914 b70326c6-7e19-0410-871a-916f4a2858ee

topology/sql/query/GetRingEdges.sql.in.c

index 5514f02c1b28fc3fbbed4fcae560e16ada7e4230..3a1b71ecb6242182a46eb4ec8f134c4b6e46767a 100644 (file)
@@ -62,8 +62,10 @@ BEGIN
     retrec.sequence := n;
     retrec.edge := curedge;
 
+#ifdef POSTGIS_TOPOLOGY_DEBUG
     RAISE DEBUG 'Edge:% left:% right:%',
       curedge, rec.next_left_edge, rec.next_right_edge;
+#endif
 
     RETURN NEXT retrec;
 
@@ -74,7 +76,9 @@ BEGIN
     END IF;
 
     IF nextedge = anedge THEN
+#ifdef POSTGIS_TOPOLOGY_DEBUG
       RAISE DEBUG ' finish';
+#endif
       RETURN;
     END IF;
 
@@ -84,7 +88,9 @@ BEGIN
 
     curedge := nextedge;
 
+#ifdef POSTGIS_TOPOLOGY_DEBUG
     RAISE DEBUG ' curedge:% anedge:%', curedge, anedge;
+#endif
 
     n := n + 1;