literalStr Function

Validates that the specified string can be a literal; if not, a compiler error occurs.


str literalStr(int str)

Parameter

Description

codename

The string to validate.

The literal string if valid.

This function is an intrinsic function, which is a metadata assertion function. Intrinsic functions validate arguments at compile time. They have no effect at run time.

{
    str s;
    ;
 
    s = literalStr("This is a literal str");
    print s;
    pause;
}

Community Additions

ADD
Show: