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