Skip to content

Instantly share code, notes, and snippets.

@renaudcerrato
Created January 21, 2019 08:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save renaudcerrato/95105a027916a249d9af7c90ceafd440 to your computer and use it in GitHub Desktop.
Save renaudcerrato/95105a027916a249d9af7c90ceafd440 to your computer and use it in GitHub Desktop.
__auto_type usage
#define max(a,b) \
({ __auto_type _a = (a); \
__auto_type _b = (b); \
_a > _b ? _a : _b; })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment