--- title: "push_macro | Microsoft Docs" ms.custom: "" ms.date: "11/04/2016" ms.reviewer: "" ms.suite: "" ms.technology: - "cpp-tools" ms.tgt_pltfrm: "" ms.topic: "article" f1_keywords: - "vc-pragma.push_macro" - "push_macro_CPP" dev_langs: - "C++" helpviewer_keywords: - "pragmas, push_macro" - "push_macro pragma" ms.assetid: ac89efc9-afd1-4dfe-bfd1-497229b3e81d caps.latest.revision: 8 author: "corob-msft" ms.author: "corob" manager: "ghogen" translation.priority.ht: - "cs-cz" - "de-de" - "es-es" - "fr-fr" - "it-it" - "ja-jp" - "ko-kr" - "pl-pl" - "pt-br" - "ru-ru" - "tr-tr" - "zh-cn" - "zh-tw" --- # push_macro Saves the value of the *macro_name* macro on the top of the stack for this macro. ## Syntax ``` #pragma push_macro(" macro_name ") ``` ## Remarks You can retrieve the value for *macro_name* with **pop_macro**. See [pop_macro](../preprocessor/pop-macro.md) for a sample. ## See Also [Pragma Directives and the __Pragma Keyword](../preprocessor/pragma-directives-and-the-pragma-keyword.md)