Changeset 8 for branches/with_autoconf/src/serialization.cc
- Timestamp:
- Jun 25, 2008, 1:08:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/with_autoconf/src/serialization.cc
r1 r8 35 35 36 36 37 #include<vector> 38 #include<map> 39 #include<fstream> // save_module_hierarchy 40 #include"internal_ext.h" // tab_t 41 #include"serialization.h" 42 #include"entity.h" 43 #include"sc_module.h" 44 #include"sc_object.h" 45 #include"hex2string.h" 46 #include"assert.h" 37 #include <vector> 38 #include <map> 39 #include <fstream> // save_module_hierarchy 40 #include "internal_ext.h" // tab_t 41 #include "serialization.h" 42 #include "entity.h" 43 #include "sc_module.h" 44 #include "sc_object.h" 45 #include "hex2string.h" 46 #include <cassert> 47 #ifdef HAVE_CONFIG_H 48 #include "config.h" 49 #endif 47 50 48 51 using namespace std; … … 83 86 int bit_number) 84 87 { 85 ASSERT(bit_number <= 64);88 assert(bit_number <= 64); 86 89 if (bit_number == 1) { 87 90 bool v = *((const bool*) val); … … 139 142 save_fct_t1 fct) 140 143 { 141 // ASSERT(fct != NULL);144 //assert(fct != NULL); 142 145 //sc_module2save_fct_t1::value_type pair(&mod,fct); 143 146 //save_handler_table.insert (pair); … … 157 160 const sc_module *mod = it->first; 158 161 save_fct_t1 fct = it->second; 159 ASSERT(mod != NULL);160 // ASSERT(fct != NULL);162 assert(mod != NULL); 163 // assert(fct != NULL); 161 164 //o << mod->name () << endl; 162 165 fprintf (o,"module\n%s\n",mod->name ()); … … 184 187 file.close (); 185 188 FILE *f = fopen (filename, "a+"); 186 ASSERT(f != NULL);189 assert(f != NULL); 187 190 save_modules (f); 188 191 fclose (f);
Note: See TracChangeset
for help on using the changeset viewer.