Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/serialization.cc

    r12 r27  
    3535
    3636
    37 #include<map>
    38 #include<fstream>
    39 //#include<vector> // save_module_hierarchy
    40 
    41 #include"internal_ext.h" // tab_t
    42 #include"serialization.h"
    43 #include"entity.h"
    44 #include"sc_module.h"
    45 #include"sc_object.h"
    46 #include"hex2string.h"
    47 #include"assert.h"
     37#include "internal_ext.h" // tab_t
     38#include "serialization.h"
     39#include "entity.h"
     40#include "sc_module.h"
     41#include "sc_object.h"
     42#include "hex2string.h"
     43
     44#include <cassert>
     45#include <map>
     46#include <fstream>
     47//#include <vector> // save_module_hierarchy
     48
     49#ifdef HAVE_CONFIG_H
     50#include "config.h"
     51#endif
    4852
    4953using namespace std;
     
    8488            int          bit_number)
    8589{
    86   ASSERT(bit_number <= 64);
     90  assert(bit_number <= 64);
    8791  if (bit_number == 1) {
    8892    bool v = *((const bool*) val);
     
    140144                    save_fct_t1      fct)
    141145{
    142   //ASSERT(fct != NULL);
     146  //assert(fct != NULL);
    143147  //sc_module2save_fct_t1::value_type pair(&mod,fct);
    144148  //save_handler_table.insert (pair);
     
    158162    const sc_module *mod = it->first;
    159163    save_fct_t1      fct = it->second;
    160     ASSERT(mod != NULL);
    161 //    ASSERT(fct != NULL);
     164    assert(mod != NULL);
     165//    assert(fct != NULL);
    162166    //o << mod->name () << endl;
    163167    fprintf (o,"module\n%s\n",mod->name ());
     
    185189  file.close ();
    186190  FILE *f = fopen (filename, "a+");
    187   ASSERT(f != NULL);
     191  assert(f != NULL);
    188192  save_modules (f);
    189193  fclose (f);
Note: See TracChangeset for help on using the changeset viewer.