Changes in sources/src/serialization.cc [12:27]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/serialization.cc
r12 r27 35 35 36 36 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 48 52 49 53 using namespace std; … … 84 88 int bit_number) 85 89 { 86 ASSERT(bit_number <= 64);90 assert(bit_number <= 64); 87 91 if (bit_number == 1) { 88 92 bool v = *((const bool*) val); … … 140 144 save_fct_t1 fct) 141 145 { 142 // ASSERT(fct != NULL);146 //assert(fct != NULL); 143 147 //sc_module2save_fct_t1::value_type pair(&mod,fct); 144 148 //save_handler_table.insert (pair); … … 158 162 const sc_module *mod = it->first; 159 163 save_fct_t1 fct = it->second; 160 ASSERT(mod != NULL);161 // ASSERT(fct != NULL);164 assert(mod != NULL); 165 // assert(fct != NULL); 162 166 //o << mod->name () << endl; 163 167 fprintf (o,"module\n%s\n",mod->name ()); … … 185 189 file.close (); 186 190 FILE *f = fopen (filename, "a+"); 187 ASSERT(f != NULL);191 assert(f != NULL); 188 192 save_modules (f); 189 193 fclose (f);
Note: See TracChangeset
for help on using the changeset viewer.