C++: Split valuetext off into its own table

This commit is contained in:
Ian Lynagh
2019-08-28 14:09:13 +01:00
parent 1bd0c69f0e
commit 754612d257
2 changed files with 9 additions and 5 deletions

View File

@@ -1237,11 +1237,15 @@ expr_cond_false(
int false: @expr ref
);
// the second field is a string representation of the value
// the third field is the actual text in the source or the same as the second field
/** A string representation of the value. */
values(
unique int id: @value,
string str: string ref,
string str: string ref
);
/** The actual text in the source code for the value, if any. */
valuetext(
unique int id: @value ref,
string text: string ref
);