Merge pull request #8 from NoodleDoodleNoodleDoodleNoodleDoodleNoo/patch-5

Update serialization.h
This commit is contained in:
monero-project 2014-05-14 11:49:05 -04:00
commit 5c820f902b

View File

@ -93,7 +93,12 @@ inline bool do_serialize(Archive &ar, T &v)
ar.serialize_varint(f); \ ar.serialize_varint(f); \
if (!ar.stream().good()) return false; \ if (!ar.stream().good()) return false; \
} while(0); } 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 serialization {
namespace detail namespace detail
{ {