Closed wslky closed 1 year ago
Default values are not emitted by default. For enums, this is the first value which also must be = 0
.
If you would like both MALE
and FEMALE
to be emitted, it’s recommended to use a nonsense zero value indicating it is either unknown or unset:
enum Sex{
SEX_UNKNOWN = 0;
MALE = 1;
FEMALE = 2;
}
What did you do?
What did you expect to see?
What did you see instead?
nothing