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!

deprecated

#pragma deprecated( function1 [, function2, ...] )

The deprecated pragma lets you indicate that a function:

When the compiler encounters a deprecated function, it issues C4995.

You can deprecate macro names. Place the macro name in quotes or else macro expansion will occur.

The deprecated __declspec modifier allows you to specify deprecated status for particular forms of overloaded functions.

Example

#include <stdio.h>
void func1(void){printf("\nIn func1");}
void func2(void){printf("\nIn func2");}

void main() {
   func1();
   func2();
   #pragma deprecated(func1, func2)
   func1();   // C4995
   func2();   // C4995
}

See Also

Pragma Directives