Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/serialization.cc

    r27 r12  
    3535
    3636
    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"
     37#include<map>
     38#include<fstream>
     39//#include<vector> // save_module_hierarchy
    4340
    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
     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"
    5248
    5349using namespace std;
     
    8884            int          bit_number)
    8985{
    90   assert(bit_number <= 64);
     86  ASSERT(bit_number <= 64);
    9187  if (bit_number == 1) {
    9288    bool v = *((const bool*) val);
     
    144140                    save_fct_t1      fct)
    145141{
    146   //assert(fct != NULL);
     142  //ASSERT(fct != NULL);
    147143  //sc_module2save_fct_t1::value_type pair(&mod,fct);
    148144  //save_handler_table.insert (pair);
     
    162158    const sc_module *mod = it->first;
    163159    save_fct_t1      fct = it->second;
    164     assert(mod != NULL);
    165 //    assert(fct != NULL);
     160    ASSERT(mod != NULL);
     161//    ASSERT(fct != NULL);
    166162    //o << mod->name () << endl;
    167163    fprintf (o,"module\n%s\n",mod->name ());
     
    189185  file.close ();
    190186  FILE *f = fopen (filename, "a+");
    191   assert(f != NULL);
     187  ASSERT(f != NULL);
    192188  save_modules (f);
    193189  fclose (f);
Note: See TracChangeset for help on using the changeset viewer.