Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/sc_module.cc

    r27 r12  
    4848#include "sc_clock.h" // is_clock
    4949#include "entity.h"
    50 #include <cassert>
    51 #ifdef HAVE_CONFIG_H
    52 #include "config.h"
    53 #endif
     50#include "assert.h"
    5451
    5552//
     
    163160  sensitivity_list_t::iterator i;
    164161  for (i = sensitivity_list.begin (); i != sensitivity_list.end (); ++i) {
    165 #if defined(CONFIG_DEBUG) && 0
     162#if defined(_DEBUG)
    166163    if (i->get_interface() == NULL)
    167164    {
     
    241238          sensitive (this)
    242239{
    243   assert(nm != NULL);
     240  ASSERT(nm != NULL);
    244241#if 0
    245242  cerr << "sc_module constructor with const char * parameter\n";
     
    501498  if (m_pushed == false)
    502499    return;
    503   assert(sc_core::module_name_stack.empty () == false);
     500  ASSERT(sc_core::module_name_stack.empty () == false);
    504501  sc_core::module_name_stack.pop_back ();
    505502        modules_stack.pop ();
     
    507504  cout << "~sc_module_name <- " << m_name << endl;
    508505#endif
    509   assert(temp_list.empty () == false);
     506  ASSERT(temp_list.empty () == false);
    510507  sc_module *last1 = temp_list.back();
    511508  temp_list.pop_back();
     
    529526  if (m.dont_initialize == false)
    530527  {
    531     assert(m.module != NULL);
    532 #ifdef CONFIG_DEBUG
     528    ASSERT(m.module != NULL);
     529#if DEBUG
    533530    std::cerr << "Warning : SystemCASS doesn't perform SC_METHOD(S) initializations.\n"
    534531              << "Please turn off automatic initialization for '" << m.name
Note: See TracChangeset for help on using the changeset viewer.