Created
January 28, 2014 01:12
-
-
Save kode54/8660691 to your computer and use it in GitHub Desktop.
Preprocessor macro push and pop test for GCC and Clang
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define X 1 | |
| #pragma push_macro("X") | |
| #undef X | |
| #define X -1 | |
| #pragma pop_macro("X") | |
| int a[X]; | |
| int main(void) | |
| { | |
| a[0] = 0; | |
| return a[0]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment