@strx directive

The directive @strx is the same as @str except that linefeeds cause the string to be broken up into separate strings. This is useful given that the C/C++ compiler concatenates adjacent string literals.

The strings are formatted into a nicely tabbed block of code ready to be compiled by the C/C++ compiler.

Before translationAfter translation
@def min(x,y) =
{
    @if(x < y) {x} @else {y}
}
const char* f()
{
    static const char* s =
        @strx
        (
            This is a sentence
            stating that the
            minimum of 3,4 is
            min(3,4)
        );
    return s;
}




const char* f()
{
    static const char* s =
        "This is a sentence\n"
        "stating that the\n"
        "minimum of 3,4 is\n"
        "3";
    return s;
}