fix push_macro, asked Tom to help me testfix push_macro

This commit is contained in:
jiang
2014-05-16 12:15:00 +08:00
parent 5a514107c4
commit 52891b6ff6
3 changed files with 10 additions and 3 deletions

View File

@ -383,7 +383,14 @@ comment
#define MACRO_TEST "macro_test1\n"
#pragma push_macro("MACRO_TEST")
#undef MACRO_TEST
#define MACRO_TEST "macro_test2\n"
#pragma push_macro("MACRO_TEST")
#undef MACRO_TEST
#define MACRO_TEST "macro_test3\n"
printf(MACRO_TEST);
#pragma pop_macro("MACRO_TEST")
printf(MACRO_TEST);
#pragma pop_macro("MACRO_TEST")
printf(MACRO_TEST);