[Request]: Support adjacent string literals in API_* tag attributes
Description
I recently ran into a small limitation while using multiple attributes with API_FIELD.
For example, I initially wrote:
API_FIELD(Attributes =
"Range(0.0f, 0.3f), "
"Tooltip(\"My quite long tooltip ...\")"
)
float SomeVariable = 0.05f;Since adjacent string literals are concatenated in C++, I expected this to be equivalent to:
API_FIELD(Attributes="Range(0.0f, 0.3f), Tooltip(\"My quite long tooltip ...\")")However, Flax.Build reports the second string literal as an unsupported tag parameter:
Unknown or not supported tag parameter '"Tooltip..."'I eventually found that putting all attributes into a single string literal works correctly:
API_FIELD(Attributes="Range(0.0f, 0.3f), Tooltip(\"...\")")Would it be possible for the Flax.Build parser to support adjacent string literals in API_* tags?
Benefits
It would mainly be a readability improvement, especially when several attributes are used or when attributes such as Tooltip contain longer strings.
If supporting this in the parser would be too complex or undesirable, I think it could at least be useful to mention in the documentation that the whole Attributes value currently needs to be contained in a single string literal.
Source: FlaxEngine/FlaxEngine