diff options
Diffstat (limited to 'sim')
-rw-r--r-- | sim/eventq.cc | 2 | ||||
-rw-r--r-- | sim/serialize.hh | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sim/eventq.cc b/sim/eventq.cc index 7285f63e8..7138d8688 100644 --- a/sim/eventq.cc +++ b/sim/eventq.cc @@ -150,7 +150,7 @@ EventQueue::serialize(ostream &os) event = event->next; } nameOut(os, "Serialized"); - SERIALIZE_MEMBER(objects); + SERIALIZE_SCALAR(objects); #endif } diff --git a/sim/serialize.hh b/sim/serialize.hh index 668e654b7..9c321b897 100644 --- a/sim/serialize.hh +++ b/sim/serialize.hh @@ -62,9 +62,9 @@ void arrayParamIn(const IniFile *db, const std::string §ion, // These macros are streamlined to use in serialize/unserialize // functions. It's assumed that serialize() has a parameter 'os' for // the ostream, and unserialize() has parameters 'db' and 'section'. -#define SERIALIZE_MEMBER(member) paramOut(os, #member, member) +#define SERIALIZE_SCALAR(scalar) paramOut(os, #scalar, scalar) -#define UNSERIALIZE_MEMBER(member) paramIn(db, section, #member, member) +#define UNSERIALIZE_SCALAR(scalar) paramIn(db, section, #scalar, scalar) #define SERIALIZE_ARRAY(member, size) \ arrayParamOut(os, #member, member, size) |