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 C2486

'__LOCAL_SIZE' only allowed in function with the 'naked' attribute

In inline assembly functions, the name __LOCAL_SIZE is reserved for functions declared with the naked attribute.

The following sample generates C2486:

void __declspec(naked) main() {
// try ...
// void __declspec(naked) main() {
   __asm {
      mov     eax,    __LOCAL_SIZE   // C2486
   }
}