Changeset 27 for sources/src/sc_module.cc
- Timestamp:
- May 4, 2009, 8:51:56 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_module.cc
r12 r27 48 48 #include "sc_clock.h" // is_clock 49 49 #include "entity.h" 50 #include "assert.h" 50 #include <cassert> 51 #ifdef HAVE_CONFIG_H 52 #include "config.h" 53 #endif 51 54 52 55 // … … 160 163 sensitivity_list_t::iterator i; 161 164 for (i = sensitivity_list.begin (); i != sensitivity_list.end (); ++i) { 162 #if defined( _DEBUG)165 #if defined(CONFIG_DEBUG) && 0 163 166 if (i->get_interface() == NULL) 164 167 { … … 238 241 sensitive (this) 239 242 { 240 ASSERT(nm != NULL);243 assert(nm != NULL); 241 244 #if 0 242 245 cerr << "sc_module constructor with const char * parameter\n"; … … 498 501 if (m_pushed == false) 499 502 return; 500 ASSERT(sc_core::module_name_stack.empty () == false);503 assert(sc_core::module_name_stack.empty () == false); 501 504 sc_core::module_name_stack.pop_back (); 502 505 modules_stack.pop (); … … 504 507 cout << "~sc_module_name <- " << m_name << endl; 505 508 #endif 506 ASSERT(temp_list.empty () == false);509 assert(temp_list.empty () == false); 507 510 sc_module *last1 = temp_list.back(); 508 511 temp_list.pop_back(); … … 526 529 if (m.dont_initialize == false) 527 530 { 528 ASSERT(m.module != NULL);529 #if 531 assert(m.module != NULL); 532 #ifdef CONFIG_DEBUG 530 533 std::cerr << "Warning : SystemCASS doesn't perform SC_METHOD(S) initializations.\n" 531 534 << "Please turn off automatic initialization for '" << m.name
Note: See TracChangeset
for help on using the changeset viewer.