Changes in sources/src/entity.cc [27:17]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/entity.cc
r27 r17 35 35 */ 36 36 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" 51 48 52 49 using namespace std; … … 178 175 typedef std::map<const tab_t *,equi_list_t::iterator,predic4tab_t2equi_t_t> tab_t2equi_it_t; 179 176 static tab_t2equi_it_t tab2equi_map; 180 assert(pointer != NULL);177 ASSERT(pointer != NULL); 181 178 182 179 // boost … … 243 240 { 244 241 equi_t::const_iterator top_iter = e.begin (); 245 #ifdef CONFIG_DEBUG242 #ifdef DEBUG 246 243 if (top_iter == e.end ()) { 247 244 cerr << "Internal error : no signal in " << e << endl; … … 360 357 } 361 358 362 #if defined(DUMP_SIGNAL _STATS)359 #if defined(DUMP_SIGNALS_STATS) 363 360 static unsigned int equi_real_size; 364 361 #endif … … 392 389 unsigned int table_size = get_sizeof_signals_table (); 393 390 equi_table = new tab_t[table_size]; //(0xCD); 394 #if defined(DUMP_SIGNAL _STATS)391 #if defined(DUMP_SIGNALS_STATS) 395 392 equi_real_size = table_size; 396 393 #endif … … 406 403 bind_equi_to_table (equi_t &e, tab_t * const pointer) 407 404 { 408 assert(pointer != NULL);405 ASSERT(pointer != NULL); 409 406 equi_t::iterator i; 410 407 for (i = e.begin (); i != e.end (); ++i) { … … 458 455 o << ")"; 459 456 #else 460 assert(e.object != NULL);457 ASSERT(e.object != NULL); 461 458 o << e.object->name (); 462 459 #endif … … 497 494 print_table_stats (ostream &o) 498 495 { 499 #if defined(DUMP_SIGNAL _STATS)496 #if defined(DUMP_SIGNALS_STATS) 500 497 int nb_reg = 0; 501 498 int nb_sig = 0; … … 540 537 } 541 538 const entity &ent = *(eq.begin ()); 542 #ifdef CONFIG_DEBUG539 #ifdef DEBUG 543 540 if (ent.type != sc_core::entity::SIGNAL) 544 541 exit(28); … … 547 544 const char *sig_name = ent.object->name (); 548 545 const char *sep = strchr (sig_name,'.'); 549 #ifdef CONFIG_DEBUG546 #ifdef DEBUG 550 547 if (sep == NULL) { 551 548 exit (30); … … 598 595 #endif 599 596 600 #if defined(DUMP_SIGNAL _STATS)597 #if defined(DUMP_SIGNALS_STATS) 601 598 static unsigned int equi_real_size; 602 599 #endif … … 606 603 { 607 604 #if 0 608 //defined( CONFIG_DEBUG)605 //defined(DEBUG) 609 606 equi_list_t::iterator x_equi = get_equi (x); 610 607 if ((x_equi != equi_list.end())) { … … 643 640 tbind (sc_port_base &x,T &y) 644 641 { 645 // assert(x.get_pointer () != NULL); // x pointer may be NULL646 // assert(y.get_pointer () != NULL); // y pointer may be NULL642 // ASSERT(x.get_pointer () != NULL); // x pointer may be NULL 643 // ASSERT(y.get_pointer () != NULL); // y pointer may be NULL 647 644 equi_list_t::iterator x_equi = get_equi (x); 648 645 equi_list_t::iterator y_equi = get_equi (y);
Note: See TracChangeset
for help on using the changeset viewer.