Only include DEBUG_SYNTH2 if __FUNCTION__ defined.
This commit is contained in:
parent
c55adddb69
commit
c8d67b904a
13
synth2.cc
13
synth2.cc
|
|
@ -17,7 +17,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
|
||||||
*/
|
*/
|
||||||
#ifdef HAVE_CVS_IDENT
|
#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
|
#endif
|
||||||
|
|
||||||
# include "config.h"
|
# include "config.h"
|
||||||
|
|
@ -28,11 +28,19 @@
|
||||||
# include <assert.h>
|
# include <assert.h>
|
||||||
|
|
||||||
static int debug_synth2=0;
|
static int debug_synth2=0;
|
||||||
|
|
||||||
|
#ifdef __FUNCTION__
|
||||||
|
|
||||||
#define DEBUG_SYNTH2_ENTRY(class) if (debug_synth2) { cerr << "Enter " << class << "::" \
|
#define DEBUG_SYNTH2_ENTRY(class) if (debug_synth2) { cerr << "Enter " << class << "::" \
|
||||||
<< __FUNCTION__ << endl; dump(cerr, 4); }
|
<< __FUNCTION__ << endl; dump(cerr, 4); }
|
||||||
#define DEBUG_SYNTH2_EXIT(class,val) if (debug_synth2) { cerr << "Exit " << class << "::" \
|
#define DEBUG_SYNTH2_EXIT(class,val) if (debug_synth2) { cerr << "Exit " << class << "::" \
|
||||||
<< __FUNCTION__ << ", result " << val << endl; }
|
<< __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,
|
bool NetProc::synth_async(Design*des, NetScope*scope,
|
||||||
const NetNet*nex_map, NetNet*nex_out)
|
const NetNet*nex_map, NetNet*nex_out)
|
||||||
{
|
{
|
||||||
|
|
@ -970,6 +978,9 @@ void synth2(Design*des)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* $Log: synth2.cc,v $
|
* $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
|
* Revision 1.36 2004/02/20 18:53:35 steve
|
||||||
* Addtrbute keys are perm_strings.
|
* Addtrbute keys are perm_strings.
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue