Changes in sources/src/sc_port.cc [27:12]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_port.cc
r27 r12 36 36 37 37 38 #include <iomanip> 39 #include <map> 40 #include <cassert> 41 42 #include "sc_port.h" 43 #include "sc_signal.h" 44 #include "sc_module.h" 45 #include "entity.h" 46 #include "global_functions.h" 47 48 #ifdef HAVE_CONFIG_H 49 #include "config.h" 50 #endif 38 #include<iomanip> 39 #include<map> 40 41 #include"sc_port.h" 42 #include"sc_signal.h" 43 #include"sc_module.h" 44 #include"entity.h" 45 #include"global_functions.h" 46 #include"assert.h" 51 47 52 48 extern "C" { … … 58 54 using namespace std; 59 55 60 #ifdef C ONFIG_CHECK_FSM_RULES61 #include 56 #ifdef CHECK_FSM_RULES 57 #include"fsm_rules.h" 62 58 namespace sc_core { 63 59 casc_fsm_step_t casc_fsm_step = ELABORATION; … … 112 108 sc_port_base::init () 113 109 { 114 #ifdef CONFIG_DEBUG110 #ifdef DEBUG 115 111 if (modules_stack.empty ()) { 116 112 cerr << "Internal error : modules stack empty\n"; … … 237 233 #endif 238 234 #define iter (sc_core::pending_write_vector[i]) 239 #ifdef CONFIG_DEBUG235 #ifdef DEBUG 240 236 if (iter.pointer == NULL) { 241 237 cerr << "Internal error : trying to apply a posted write from an unassigned signal/port\n"; … … 259 255 cerr << "done.\n"; 260 256 #endif 261 #if defined(C ONFIG_CHECK_MULTIWRITING2REGISTER)257 #if defined(CHECK_MULTIWRITING2REGISTER) 262 258 sc_core::pending_writing2register_clear (); 263 259 #endif … … 314 310 { 315 311 const tab_t *pointer = port.get_pointer (); 316 // assert(pointer != NULL);312 //ASSERT(pointer != NULL); 317 313 if (pointer == NULL) 318 314 return false; // case : sc_in not bound … … 347 343 { 348 344 /*const*/ sc_port_base *port = i->first; 349 assert(port != NULL);345 ASSERT(port != NULL); 350 346 check_port (*port); 351 347 } … … 354 350 } 355 351 356 #if defined(C ONFIG_CHECK_MULTIWRITING2REGISTER)352 #if defined(CHECK_MULTIWRITING2REGISTER) 357 353 typedef set<const tab_t*> pending_writing2register_set_t; 358 354 pending_writing2register_set_t pending_writing2register_set;
Note: See TracChangeset
for help on using the changeset viewer.