From c8d67b904abe8f0bdc9ab8d25793f2da04409d1d Mon Sep 17 00:00:00 2001 From: steve Date: Mon, 15 Mar 2004 18:40:12 +0000 Subject: [PATCH] Only include DEBUG_SYNTH2 if __FUNCTION__ defined. --- synth2.cc | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/synth2.cc b/synth2.cc index 167b7d095..2cb02a4cc 100644 --- a/synth2.cc +++ b/synth2.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA */ #ifdef HAVE_CVS_IDENT -#ident "$Id: synth2.cc,v 1.36 2004/02/20 18:53:35 steve Exp $" +#ident "$Id: synth2.cc,v 1.37 2004/03/15 18:40:12 steve Exp $" #endif # include "config.h" @@ -28,11 +28,19 @@ # include static int debug_synth2=0; + +#ifdef __FUNCTION__ + #define DEBUG_SYNTH2_ENTRY(class) if (debug_synth2) { cerr << "Enter " << class << "::" \ << __FUNCTION__ << endl; dump(cerr, 4); } #define DEBUG_SYNTH2_EXIT(class,val) if (debug_synth2) { cerr << "Exit " << class << "::" \ << __FUNCTION__ << ", result " << val << endl; } +#else +#define DEBUG_SYNTH2_ENTRY(class) +#define DEBUG_SYNTH2_EXIT(class,val) +#endif + bool NetProc::synth_async(Design*des, NetScope*scope, const NetNet*nex_map, NetNet*nex_out) { @@ -970,6 +978,9 @@ void synth2(Design*des) /* * $Log: synth2.cc,v $ + * Revision 1.37 2004/03/15 18:40:12 steve + * Only include DEBUG_SYNTH2 if __FUNCTION__ defined. + * * Revision 1.36 2004/02/20 18:53:35 steve * Addtrbute keys are perm_strings. *