Skip to content

Instantly share code, notes, and snippets.

@enjoylife
Created October 1, 2012 05:08
Show Gist options
  • Save enjoylife/3809558 to your computer and use it in GitHub Desktop.
Save enjoylife/3809558 to your computer and use it in GitHub Desktop.
swap # define
#define SWAP(x, y) do { typeof(x) temp##x##y = x; x = y; y = temp##x##y; } while (0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment