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!

pop_macro

#pragma pop_macro("macro_name")

Sets the value of the macro_name macro to the value on the top of the stack. You must first issue a push_macro for macro_name before you can do a pop_macro.

Example

#include <stdio.h>
#define X 1
#define Y 2

void main() {
   printf("\n%d",X);
   #pragma push_macro("X")
   printf("\n%d",X);
   #define X 2
   printf("\n%d",X);
   #pragma pop_macro("X")
   printf("\n%d",X);
}

See Also

Pragma Directives