Created
November 28, 2017 10:43
-
-
Save AtnNn/1923ded0189de8c2c652bc425179eda6 to your computer and use it in GitHub Desktop.
Visual C++ SWITCH_ALL
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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