Changeset 8 for branches/with_autoconf/src/sc_trace.cc
- Timestamp:
- Jun 25, 2008, 1:08:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/with_autoconf/src/sc_trace.cc
r1 r8 41 41 #include "bit2string.h" 42 42 #include "hex2string.h" 43 #include "assert.h"43 #include <cassert> 44 44 45 45 #include <list> 46 46 #include <stdio.h> 47 47 #include <iostream> 48 #ifdef HAVE_CONFIG_H 49 #include "config.h" 50 #endif 48 51 49 52 //----------------------------------------- … … 52 55 53 56 //----------------------------------------- 54 #ifdef PAT_TRACE_FORMAT57 #ifdef CONFIG_PAT_TRACE_FORMAT 55 58 56 59 extern "C" { … … 62 65 #include <stdio.h> 63 66 64 #endif // PAT_TRACE_FORMAT67 #endif // CONFIG_PAT_TRACE_FORMAT 65 68 //----------------------------------------- 66 69 … … 164 167 { 165 168 sc_trace_file *tf = *ptf; 166 ASSERT(tf != NULL);169 assert(tf != NULL); 167 170 trace (*tf, part); 168 171 } … … 172 175 } 173 176 174 #if 177 #ifdef CONFIG_PAT_TRACE_FORMAT 175 178 static void 176 179 pat_set_value (char *buf, const signal2trace &s) … … 282 285 { 283 286 } 284 #endif // PAT_TRACE_FORMAT287 #endif // CONFIG_PAT_TRACE_FORMAT 285 288 286 289 static … … 413 416 else 414 417 vcd_signal_table = (tab_t*) malloc (sizeof (tab_t) * size); 415 #if 418 #ifdef CONFIG_DEBUG 416 419 if (vcd_signal_table == NULL) 417 420 { … … 485 488 vcd_trace_init (tf); 486 489 } else { 487 #if defined( DEBUG)490 #if defined(CONFIG_DEBUG) 488 491 if (vcd_signal_table == NULL) 489 492 { … … 579 582 &name) 580 583 { 581 #ifdef PAT_TRACE_FORMAT584 #ifdef CONFIG_PAT_TRACE_FORMAT 582 585 //exemple: 583 586 //DECLAR ("a", ":2", "X", IN, "3 downto 0", "" ); … … 629 632 #endif 630 633 DECLAR ((char*)(name.c_str ()), ":1", format, dir,(char *) downto.c_str(), "" ); 631 #endif // PAT_TRACE_FORMAT634 #endif // CONFIG_PAT_TRACE_FORMAT 632 635 } 633 636
Note: See TracChangeset
for help on using the changeset viewer.