Ignore:
Timestamp:
Jun 25, 2008, 1:08:04 PM (16 years ago)
Author:
nipo
Message:

Checkin autotools magic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/with_autoconf/src/sc_signal.h

    r1 r8  
    1515
    1616// Define registers writing method
    17 #include<iostream>
    18 #include"sc_fwd.h"
    19 #include"sc_nbdefs.h"
    20 //#include"sc_event_finder.h"
    21 //#include"sc_event.h"
    22 #include"sc_time.h" // SC_ZERO_TIME
    23 #include"sc_object.h"
    24 #include"sc_interface.h"
    25 #include"internal_ext.h"
     17#include <iostream>
     18#include "sc_fwd.h"
     19#include "sc_nbdefs.h"
     20//#include "sc_event_finder.h"
     21//#include "sc_event.h"
     22#include "sc_time.h" // SC_ZERO_TIME
     23#include "sc_object.h"
     24#include "sc_interface.h"
     25#include "internal_ext.h"
     26
     27#ifdef CONFIG_CHECK_FSM_RULES
    2628#include "fsm_rules.h"
     29#endif
    2730
    2831namespace sc_core {
     
    4144        ///////////////////// DEPRECATED
    4245// C ANSI-only since it is needed to link with extern "C"
    43 // this declaration is not in casc.h since the CHECK_FSM_RULES macro
     46// this declaration is not in casc.h since the CONFIG_CHECK_FSM_RULES macro
    4447// is not defined.
    4548
     
    97100                post_multiwrite (pointer_,value_);
    98101        } else {
    99 #if defined(DEBUG)
     102#if defined(CONFIG_DEBUG)
    100103        if (pending_write_vector_nb >= pending_write_vector_capacity) {
    101104        //if (pending_write_vector_nb >= pending_write_vector_capacity * sizeof(pending_write)) {
     
    105108                exit (-1);
    106109        }
    107 #endif // DEBUG
     110#endif // CONFIG_DEBUG
    108111  pending_write_vector[pending_write_vector_nb].pointer = pointer_;
    109112//      pending_write_vector[pending_write_vector_nb++].value = *(reinterpret_cast<const base_type*const>(&value_)); => bug !
     
    244247                << " on signal " << name () << "\n";
    245248#endif
    246 #ifdef CHECK_FSM_RULES
     249#ifdef CONFIG_CHECK_FSM_RULES
    247250        // we can read value from sc_signal type (used like a register) at any time
    248251#endif 
     
    256259sc_signal<T>::write( const data_type& value_ )
    257260{
    258 #ifdef CHECK_FSM_RULES
     261#ifdef CONFIG_CHECK_FSM_RULES
    259262        if ((casc_fsm_step != TRANSITION)
    260263                        && ( casc_fsm_step != STIMULI)) {
     
    265268        }               
    266269#endif
    267 #ifdef DEBUG
     270#ifdef CONFIG_DEBUG
    268271  if (get_pointer() == NULL)
    269272  {
     
    272275  }
    273276#endif
    274 #ifdef CHECK_MULTIWRITING2REGISTER
     277#ifdef CONFIG_CHECK_MULTIWRITING2REGISTER
    275278  pending_writing2register_record_and_check (get_pointer ());
    276279#endif
Note: See TracChangeset for help on using the changeset viewer.