diff options
author | Přemysl Eric Janouch <p@janouch.name> | 2025-05-07 19:42:46 +0200 |
---|---|---|
committer | Přemysl Eric Janouch <p@janouch.name> | 2025-05-07 19:42:46 +0200 |
commit | b69d3f8692b1d34f9b8616e046cdabe0d2fb67c0 (patch) | |
tree | bbbeb4fa30762d2f6b68f738c0d34691c1ba590a /libertyxdr.adoc | |
parent | 9a26284a642252d678809bbbf299b8f31d81416e (diff) | |
download | liberty-b69d3f8692b1d34f9b8616e046cdabe0d2fb67c0.tar.gz liberty-b69d3f8692b1d34f9b8616e046cdabe0d2fb67c0.tar.xz liberty-b69d3f8692b1d34f9b8616e046cdabe0d2fb67c0.zip |
LibertyXDR: add support for default in unions
Diffstat (limited to 'libertyxdr.adoc')
-rw-r--r-- | libertyxdr.adoc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libertyxdr.adoc b/libertyxdr.adoc index d3255ed..0002184 100644 --- a/libertyxdr.adoc +++ b/libertyxdr.adoc @@ -93,10 +93,12 @@ and always-present field, which must be a tag *enum*: case CAR: void; case LORRY: i8 axles; case PLANE: i8 engines; + default: void; }; -All possible enumeration values must be named, and there is no *case* -fall-through. +There is no *case* fall-through. +Unless *default* is present, only the listed enumeration values are valid. +Any *default* must currently be empty. Framing ------- |