Created
January 1, 2014 06:28
-
-
Save if1live/8205643 to your computer and use it in GitHub Desktop.
Happy new Year!
This file contains 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> | |
#include <memory> | |
class Year { | |
public: | |
~Year() { | |
printf("Happy New Year!\n"); | |
} | |
}; | |
#define Happy | |
#define CODE_BEGIN std::auto_ptr<Year> ptr( | |
#define CODE_END ); return 0; | |
int main() { | |
CODE_BEGIN | |
Happy new Year | |
CODE_END | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment