Sanely handle optional fields set to their default values.

Specify when this is allowed and when it's prohibited.
This commit is contained in:
JoelKatz
2012-11-16 15:11:16 -08:00
parent 7b1540c5fd
commit 8bd212e6bc
5 changed files with 16 additions and 9 deletions

View File

@@ -30,7 +30,8 @@ enum SOE_Flags
{
SOE_INVALID = -1,
SOE_REQUIRED = 0, // required
SOE_OPTIONAL = 1, // optional
SOE_OPTIONAL = 1, // optional, may be present with default value
SOE_DEFAULT = 2, // optional, if present, must not have default value
};
class SField