From: Sandro Santilli Date: Tue, 24 Jan 2012 17:29:07 +0000 (+0000) Subject: Protect DEBUG lines in compile-time conditional X-Git-Tag: 2.0.0alpha2~8 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6b19d9e9c1924c8ca6a3f8564cfb5be9cc5588c3;p=postgis Protect DEBUG lines in compile-time conditional git-svn-id: http://svn.osgeo.org/postgis/trunk@8914 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/topology/sql/query/GetRingEdges.sql.in.c b/topology/sql/query/GetRingEdges.sql.in.c index 5514f02c1..3a1b71ecb 100644 --- a/topology/sql/query/GetRingEdges.sql.in.c +++ b/topology/sql/query/GetRingEdges.sql.in.c @@ -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;