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