Created
July 28, 2020 10:26
-
-
Save kaityo256/3b80e0f044c4ff1b61936bdda4b579c9 to your computer and use it in GitHub Desktop.
Redefined macro
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
| #include <cstdio> | |
| #define A 1 | |
| #define B 1 | |
| #define A 1 // No warning | |
| #define B 2 // test.cpp:7:0: warning: "B" redefined | |
| int main() { | |
| printf("%d %d\n", A, B); | |
| } |
Author
kaityo256
commented
Jul 28, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment