Skip to content

Instantly share code, notes, and snippets.

@rileylev
Last active January 9, 2019 17:23
Show Gist options
  • Save rileylev/1eecc633563e3c083be5fcab7f490b99 to your computer and use it in GitHub Desktop.
Save rileylev/1eecc633563e3c083be5fcab7f490b99 to your computer and use it in GitHub Desktop.
with macros
#define WM_GENSYM(name) GENSYM_##name##__COUNTER__
#define WM_WITH(initializer,body) {auto WM_GENSYM() = initializer; body}
@is2land7
Copy link

is2land7 commented Jan 9, 2019

hello

@rileylev
Copy link
Author

rileylev commented Jan 9, 2019

hi! do you have any questions about this gist?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment