Skip to content

Instantly share code, notes, and snippets.

@goyusia
Created January 1, 2014 06:28
Show Gist options
  • Select an option

  • Save goyusia/8205643 to your computer and use it in GitHub Desktop.

Select an option

Save goyusia/8205643 to your computer and use it in GitHub Desktop.
Happy new Year!
#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