setPrefix Function

Sets the prefix for the current execution scope.


int setPrefix(str _prefix)

Parameter

Description

_prefix

The prefix for the current execution scope.

0 if the prefix was set successfully.

The complete prefix for the execution can be fetched by using the getPrefix function. When leaving the scope, the prefix is automatically reset to the previous level. The prefix mechanism makes it more straightforward to write precise error messages about the transactions performed by an application.

static void setPrefixExample(Args _arg)
{
    int i;
    ;
    i = setPrefix("Prefix");
    print i;
    pause;
}

Community Additions

ADD
Show: