Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/sc_trace.cc

    r27 r17  
    4141#include "bit2string.h"
    4242#include "hex2string.h"
    43 
    44 #include <cassert>
     43#include "assert.h"
     44
    4545#include <list>
    4646#include <cstdio>
     
    4848#include <cstring> //strlen
    4949
    50 #ifdef HAVE_CONFIG_H
    51 #include "config.h"
    52 #endif
    53 
    5450//-----------------------------------------
    5551
     
    5753
    5854//-----------------------------------------
    59 #ifdef CONFIG_PAT_TRACE_FORMAT
     55#ifdef PAT_TRACE_FORMAT
    6056
    6157extern "C" {
     
    6763#include <cstdio>
    6864
    69 #endif // CONFIG_PAT_TRACE_FORMAT
     65#endif // PAT_TRACE_FORMAT
    7066//-----------------------------------------
    7167
     
    169165    {
    170166      sc_trace_file *tf = *ptf;
    171       assert(tf != NULL);
     167      ASSERT(tf != NULL);
    172168                trace (*tf, part);
    173169    }
     
    177173}
    178174
    179 #ifdef CONFIG_PAT_TRACE_FORMAT
     175#if PAT_TRACE_FORMAT
    180176static void
    181177pat_set_value (char *buf, const signal2trace &s)
     
    287283{
    288284}
    289 #endif // CONFIG_PAT_TRACE_FORMAT
     285#endif // PAT_TRACE_FORMAT
    290286
    291287static
     
    418414  else
    419415    vcd_signal_table = (tab_t*) malloc (sizeof (tab_t) * size);
    420 #ifdef CONFIG_DEBUG
     416#if DEBUG
    421417  if (vcd_signal_table == NULL)
    422418  {
     
    490486      vcd_trace_init (tf);
    491487  } else {
    492 #if defined(CONFIG_DEBUG)
     488#if defined(DEBUG)
    493489      if (vcd_signal_table == NULL)
    494490      {
     
    584580&name)
    585581{
    586 #ifdef CONFIG_PAT_TRACE_FORMAT
     582#ifdef PAT_TRACE_FORMAT
    587583        //exemple:
    588584        //DECLAR ("a", ":2", "X", IN, "3  downto 0", "" );
     
    634630#endif
    635631        DECLAR ((char*)(name.c_str ()), ":1", format, dir,(char *) downto.c_str(), "" );
    636 #endif // CONFIG_PAT_TRACE_FORMAT
     632#endif // PAT_TRACE_FORMAT
    637633}
    638634
Note: See TracChangeset for help on using the changeset viewer.