The following example shows the use of the #pragma isolated_call directive. Because the function this_function does not have side effects, a call to it will not change the value of the external variable a. The argument to that_function has the value 6.
int a, this_function(int) /* Assumed to have no side effects */ #pragma isolated_call(this_function) that_function() { a = 6; this_function(7); /* Call does not change the value of "a" */ other_function(a); /* Argument "a" has the value of 6 */ }