ARM_scoping

Controls the scope of variables declared in the expression parts of if, while, do, and for statements.

Syntax
  #pragma ARM_scoping on | off | reset  
Remarks

If you enable this pragma, any variables you define in the conditional expression of an if, while, do, or for statement remain in scope until the end of the block that contains the statement. Otherwise, the variables only remain in scope until the end of that statement. The following listing shows an example.

Listing: Example of Using Variables Declared in for Statement
for(int i=1; i<1000; i++) { /* . . . */ }
return i;  // OK if ARM_scoping is on, error if ARM_scoping is off.