Skip to content

Commit 36afd09

Browse files
rustyconoverclaude
andcommitted
cpp_records: accept lower-case macro_type too
vgi-go, vgi-rust and vgi-java send macro_type in lower case, as they do function_type; the hand-written client accepted both. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
1 parent 39e15e1 commit 36afd09

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎vgi/codegen/cpp_records.py‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@
9393

9494
#: Extra wire spellings the C++ client accepts for an enum (C++ enum name -> {spelling: member
9595
#: NAME}). Only spellings peers really send, which the hand-written client always accepted:
96-
#: vgi-go sends ``function_type`` in lower case, and ``table_in_out`` is the legacy name of
97-
#: TABLE. Encoding always writes the canonical member name.
96+
#: vgi-go, vgi-rust and vgi-java send ``function_type`` / ``macro_type`` in lower case, and
97+
#: ``table_in_out`` is the legacy name of TABLE. Encoding always writes the canonical name.
9898
ENUM_WIRE_ALIASES: dict[str, dict[str, str]] = {
9999
"FunctionType": {
100100
"scalar": "SCALAR",
@@ -103,6 +103,8 @@
103103
"table_buffering": "TABLE_BUFFERING",
104104
"aggregate": "AGGREGATE",
105105
},
106+
# vgi-go, vgi-rust and vgi-java send macro_type in lower case too.
107+
"MacroType": {"scalar": "SCALAR", "table": "TABLE"},
106108
}
107109

108110

0 commit comments

Comments
 (0)