aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/serialization/serialization.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/serialization/serialization.h b/src/serialization/serialization.h
index 2d78baf3a..2e69ea0a3 100644
--- a/src/serialization/serialization.h
+++ b/src/serialization/serialization.h
@@ -93,7 +93,12 @@ inline bool do_serialize(Archive &ar, T &v)
ar.serialize_varint(f); \
if (!ar.stream().good()) return false; \
} while(0);
-
+#define VARINT_FIELD_N(t, f) \
+ do { \
+ ar.tag(t); \
+ ar.serialize_varint(f); \
+ if (!ar.stream().good()) return false; \
+ } while(0);
namespace serialization {
namespace detail
{