NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Compiler Error C2156

pragma must be outside function

A pragma that must be specified at a global level (outside a function body) is within a function. The following sample generates C2156:

#pragma optimize( "l", on )      // ok 

void main() {
   #pragma optimize( "l", on )   // C2156
}