Skip to content

Instantly share code, notes, and snippets.

@AtnNn
Created November 28, 2017 10:43
Show Gist options
  • Save AtnNn/1923ded0189de8c2c652bc425179eda6 to your computer and use it in GitHub Desktop.
Save AtnNn/1923ded0189de8c2c652bc425179eda6 to your computer and use it in GitHub Desktop.
Visual C++ SWITCH_ALL
#define SWITCH_ALL(value, ...) \
__pragma(warning(push)) \
__pragma(warning(error: 4061)) \
switch(value){ __VA_ARGS__ } \
__pragma(warning(pop))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment