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