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_module.cc

    r1 r8  
    4949#include "sc_clock.h" // is_clock
    5050#include "entity.h"
    51 #include "assert.h"
     51#include <cassert>
     52#ifdef HAVE_CONFIG_H
     53#include "config.h"
     54#endif
    5255
    5356//
     
    161164  sensitivity_list_t::iterator i;
    162165  for (i = sensitivity_list.begin (); i != sensitivity_list.end (); ++i) {
    163 #if defined(_DEBUG)
     166#if defined(CONFIG_DEBUG) && 0
    164167    if (i->get_interface() == NULL)
    165168    {
     
    239242          sensitive (this)
    240243{
    241   ASSERT(nm != NULL);
     244  assert(nm != NULL);
    242245#if 0
    243246  cerr << "sc_module constructor with const char * parameter\n";
     
    499502  if (m_pushed == false)
    500503    return;
    501   ASSERT(sc_core::module_name_stack.empty () == false);
     504  assert(sc_core::module_name_stack.empty () == false);
    502505  sc_core::module_name_stack.pop_back ();
    503506        modules_stack.pop ();
     
    505508  cout << "~sc_module_name <- " << m_name << endl;
    506509#endif
    507   ASSERT(temp_list.empty () == false);
     510  assert(temp_list.empty () == false);
    508511  sc_module *last1 = temp_list.back();
    509512  temp_list.pop_back();
     
    527530  if (m.dont_initialize == false)
    528531  {
    529     ASSERT(m.module != NULL);
    530 #if DEBUG
     532    assert(m.module != NULL);
     533#ifdef CONFIG_DEBUG
    531534    std::cerr << "Warning : SystemCASS doesn't perform SC_METHOD(S) initializations.\n"
    532535              << "Please turn off automatic initialization for '" << m.name
Note: See TracChangeset for help on using the changeset viewer.