Skip to content

Instantly share code, notes, and snippets.

@borman
Created October 3, 2009 12:05
Show Gist options
  • Save borman/200610 to your computer and use it in GitHub Desktop.
Save borman/200610 to your computer and use it in GitHub Desktop.
#define in(name) freopen(#name ".in", "r", stdin)
#ifdef DEBUG
# define out(name)
# define debug(f, args...) printf("[DEBUG] " f "\n", ##args)
#else
# define out(name) freopen(#name ".out", "w", stdout)
# define debug(...)
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment