Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/entity.cc

    r27 r17  
    3535 */
    3636
    37 #include <cstring>
    38 #include <iomanip>
    39 #include <list>
    40 #include <map>
    41 #include <vector>
    42 
    43 #include <cassert>
    44 #include "entity.h"
    45 #include "sc_port.h"
    46 #include "sc_signal.h"
    47 #include "sc_module.h"
    48 #ifdef HAVE_CONFIG_H
    49 #include "config.h"
    50 #endif
     37#include<cstring>
     38#include<iomanip>
     39#include<list>
     40#include<map>
     41#include<vector>
     42
     43#include"assert.h"
     44#include"entity.h"
     45#include"sc_port.h"
     46#include"sc_signal.h"
     47#include"sc_module.h"
    5148
    5249using namespace std;
     
    178175    typedef std::map<const tab_t *,equi_list_t::iterator,predic4tab_t2equi_t_t> tab_t2equi_it_t;
    179176    static tab_t2equi_it_t tab2equi_map;
    180     assert(pointer != NULL);
     177    ASSERT(pointer != NULL);
    181178
    182179    // boost
     
    243240        {
    244241                equi_t::const_iterator top_iter = e.begin ();
    245 #ifdef CONFIG_DEBUG
     242#ifdef DEBUG
    246243                if (top_iter == e.end ()) {
    247244                        cerr << "Internal error : no signal in " << e << endl;
     
    360357        }
    361358       
    362 #if defined(DUMP_SIGNAL_STATS)
     359#if defined(DUMP_SIGNALS_STATS)
    363360        static unsigned int equi_real_size;
    364361#endif
     
    392389    unsigned int table_size = get_sizeof_signals_table ();
    393390                equi_table = new tab_t[table_size]; //(0xCD);
    394 #if defined(DUMP_SIGNAL_STATS)
     391#if defined(DUMP_SIGNALS_STATS)
    395392                equi_real_size = table_size;
    396393#endif
     
    406403  bind_equi_to_table (equi_t &e, tab_t * const pointer)
    407404  {
    408     assert(pointer != NULL);
     405    ASSERT(pointer != NULL);
    409406    equi_t::iterator i;
    410407    for (i = e.begin (); i != e.end (); ++i) {
     
    458455    o << ")";
    459456#else
    460    assert(e.object != NULL);
     457   ASSERT(e.object != NULL);
    461458   o << e.object->name ();
    462459#endif
     
    497494  print_table_stats (ostream &o)
    498495  {
    499 #if defined(DUMP_SIGNAL_STATS)
     496#if defined(DUMP_SIGNALS_STATS)
    500497                int nb_reg = 0;
    501498                int nb_sig = 0;
     
    540537        }
    541538        const entity &ent = *(eq.begin ());
    542 #ifdef CONFIG_DEBUG
     539#ifdef DEBUG
    543540        if (ent.type != sc_core::entity::SIGNAL)
    544541                exit(28);
     
    547544        const char *sig_name = ent.object->name ();
    548545        const char *sep  = strchr (sig_name,'.');
    549 #ifdef CONFIG_DEBUG
     546#ifdef DEBUG
    550547        if (sep == NULL) {
    551548                exit (30);
     
    598595#endif
    599596
    600 #if defined(DUMP_SIGNAL_STATS)
     597#if defined(DUMP_SIGNALS_STATS)
    601598static unsigned int equi_real_size;
    602599#endif
     
    606603{
    607604#if 0
    608 //defined(CONFIG_DEBUG)
     605//defined(DEBUG)
    609606  equi_list_t::iterator x_equi = get_equi (x);
    610607  if ((x_equi != equi_list.end())) {
     
    643640tbind (sc_port_base &x,T &y)
    644641{
    645 //  assert(x.get_pointer () != NULL); // x pointer may be NULL
    646 //  assert(y.get_pointer () != NULL); // y pointer may be NULL
     642//  ASSERT(x.get_pointer () != NULL); // x pointer may be NULL
     643//  ASSERT(y.get_pointer () != NULL); // y pointer may be NULL
    647644  equi_list_t::iterator x_equi = get_equi (x);
    648645  equi_list_t::iterator y_equi = get_equi (y);
Note: See TracChangeset for help on using the changeset viewer.