Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/sc_port.cc

    r27 r12  
    3636
    3737
    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"
    5147
    5248extern "C" {
     
    5854using namespace std;
    5955
    60 #ifdef CONFIG_CHECK_FSM_RULES
    61 #include "fsm_rules.h"
     56#ifdef CHECK_FSM_RULES
     57#include"fsm_rules.h"
    6258namespace sc_core {
    6359casc_fsm_step_t casc_fsm_step = ELABORATION;
     
    112108sc_port_base::init ()
    113109{
    114 #ifdef CONFIG_DEBUG
     110#ifdef DEBUG
    115111        if (modules_stack.empty ()) {
    116112                cerr << "Internal error : modules stack empty\n";
     
    237233#endif
    238234#define iter (sc_core::pending_write_vector[i])
    239 #ifdef CONFIG_DEBUG
     235#ifdef DEBUG
    240236                if (iter.pointer == NULL) {
    241237                        cerr << "Internal error : trying to apply a posted write from an unassigned signal/port\n";
     
    259255  cerr << "done.\n";
    260256#endif
    261 #if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
     257#if defined(CHECK_MULTIWRITING2REGISTER)
    262258  sc_core::pending_writing2register_clear ();
    263259#endif
     
    314310{
    315311  const tab_t *pointer = port.get_pointer ();
    316   //assert(pointer != NULL);
     312  //ASSERT(pointer != NULL);
    317313  if (pointer == NULL)
    318314    return false; // case : sc_in not bound
     
    347343  {
    348344    /*const*/ sc_port_base *port = i->first;
    349     assert(port != NULL);
     345    ASSERT(port != NULL);
    350346    check_port (*port);
    351347  }
     
    354350}
    355351
    356 #if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
     352#if defined(CHECK_MULTIWRITING2REGISTER)
    357353typedef set<const tab_t*> pending_writing2register_set_t;
    358354pending_writing2register_set_t pending_writing2register_set;
Note: See TracChangeset for help on using the changeset viewer.