COMMUNITY

Macro expression for string interpolation

Hi!

I am writing a macros, which uses meta-tags like:
@someTag someFunction();

But in my macros I am struggling to “catch” such a meta-tag when it is used inside string interpolation expression:
'Some string ${@someTag someFunction()}';

I didn’t find an appropriate enum value in the ExprDef.
I’ve also though that maybe expression inside ${} is ExprDef.EBlock, but didn’t manage to make it work.

Is there any specific logic related to the string interpolation or maybe I am missing something?

Thanks!

You can manually interpolate strings via MacroStringTools.formatString.

Thanks! I’ll give it a try