push_macro

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

Saves the value of the macro_name macro on the top of the stack for this macro.

  
#pragma push_macro("  
macro_name  
")  
  

You can retrieve the value for macro_name with pop_macro.

See pop_macro for a sample.

Pragma Directives and the __Pragma Keyword

Show: