Changes to add comments per enum or record type field.

This commit is contained in:
Jon Siwek 2011-03-14 11:50:46 -05:00
parent 15fd5297a3
commit 4b0eb8127d
3 changed files with 102 additions and 1 deletions

View file

@ -330,6 +330,29 @@ public:
dst = 0; \
}
#define UNSERIALIZE_OPTIONAL_STR_DEL(dst, del) \
{ \
bool has_it; \
if ( ! info->s->Read(&has_it, "has_" #dst) ) \
{ \
delete del; \
return 0; \
} \
\
if ( has_it ) \
{ \
info->s->Read(&dst, 0, "has_" #dst); \
if ( ! dst ) \
{ \
delete del; \
return 0; \
} \
} \
\
else \
dst = 0; \
}
#define UNSERIALIZE_OPTIONAL_STATIC(dst, unserialize, del) \
{ \
bool has_it; \