diff options
author | monero-project <sempre.amaro@gmail.com> | 2014-05-14 11:49:05 -0400 |
---|---|---|
committer | monero-project <sempre.amaro@gmail.com> | 2014-05-14 11:49:05 -0400 |
commit | 5c820f902bddeb2eb7cf67f216481f4860c46f84 (patch) | |
tree | 010bd9652020d0e5b9918bd3ec040fd8c994eb2d | |
parent | 20s timeout for zone117x pool (diff) | |
parent | Update serialization.h (diff) | |
download | monero-5c820f902bddeb2eb7cf67f216481f4860c46f84.tar.xz |
Merge pull request #8 from NoodleDoodleNoodleDoodleNoodleDoodleNoo/patch-5
Update serialization.h
-rw-r--r-- | src/serialization/serialization.h | 7 |
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 { |