From 6b19d9e9c1924c8ca6a3f8564cfb5be9cc5588c3 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 24 Jan 2012 17:29:07 +0000 Subject: [PATCH] Protect DEBUG lines in compile-time conditional git-svn-id: http://svn.osgeo.org/postgis/trunk@8914 b70326c6-7e19-0410-871a-916f4a2858ee --- topology/sql/query/GetRingEdges.sql.in.c | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.40.0