Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #define XYZZY
- struct X
- {
- X(const char* c) {}
- };
- void print(X)
- {
- std::cout << "void print(const char* c);\n"
- << "#ifdef XYZZY\n"
- << "void print(const char* c) { std::cout << c; };\n"
- << "#endif\n";
- }
- int main()
- {
- print("71E17-65E47-AD4D2-984F8\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement