Changeset 27 for sources/src/sc_trace.cc
- Timestamp:
- May 4, 2009, 8:51:56 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_trace.cc
r17 r27 41 41 #include "bit2string.h" 42 42 #include "hex2string.h" 43 #include "assert.h" 44 43 44 #include <cassert> 45 45 #include <list> 46 46 #include <cstdio> … … 48 48 #include <cstring> //strlen 49 49 50 #ifdef HAVE_CONFIG_H 51 #include "config.h" 52 #endif 53 50 54 //----------------------------------------- 51 55 … … 53 57 54 58 //----------------------------------------- 55 #ifdef PAT_TRACE_FORMAT59 #ifdef CONFIG_PAT_TRACE_FORMAT 56 60 57 61 extern "C" { … … 63 67 #include <cstdio> 64 68 65 #endif // PAT_TRACE_FORMAT69 #endif // CONFIG_PAT_TRACE_FORMAT 66 70 //----------------------------------------- 67 71 … … 165 169 { 166 170 sc_trace_file *tf = *ptf; 167 ASSERT(tf != NULL);171 assert(tf != NULL); 168 172 trace (*tf, part); 169 173 } … … 173 177 } 174 178 175 #if 179 #ifdef CONFIG_PAT_TRACE_FORMAT 176 180 static void 177 181 pat_set_value (char *buf, const signal2trace &s) … … 283 287 { 284 288 } 285 #endif // PAT_TRACE_FORMAT289 #endif // CONFIG_PAT_TRACE_FORMAT 286 290 287 291 static … … 414 418 else 415 419 vcd_signal_table = (tab_t*) malloc (sizeof (tab_t) * size); 416 #if 420 #ifdef CONFIG_DEBUG 417 421 if (vcd_signal_table == NULL) 418 422 { … … 486 490 vcd_trace_init (tf); 487 491 } else { 488 #if defined( DEBUG)492 #if defined(CONFIG_DEBUG) 489 493 if (vcd_signal_table == NULL) 490 494 { … … 580 584 &name) 581 585 { 582 #ifdef PAT_TRACE_FORMAT586 #ifdef CONFIG_PAT_TRACE_FORMAT 583 587 //exemple: 584 588 //DECLAR ("a", ":2", "X", IN, "3 downto 0", "" ); … … 630 634 #endif 631 635 DECLAR ((char*)(name.c_str ()), ":1", format, dir,(char *) downto.c_str(), "" ); 632 #endif // PAT_TRACE_FORMAT636 #endif // CONFIG_PAT_TRACE_FORMAT 633 637 } 634 638
Note: See TracChangeset
for help on using the changeset viewer.