Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS Compatibility #4

Closed
pmor13 opened this issue Sep 30, 2014 · 2 comments
Closed

VS Compatibility #4

pmor13 opened this issue Sep 30, 2014 · 2 comments

Comments

@pmor13
Copy link

pmor13 commented Sep 30, 2014

To make REPEAT macro compatible with VS2010:

#define EXPAND__( x ) x
#define CHECK(...) EXPAND__(CHECK_N(__VA_ARGS__, 0,))
#define NOT(x) CHECK(EXPAND__(PRIMITIVE_CAT(NOT_, x)))
@pfultz2
Copy link
Owner

pfultz2 commented Dec 2, 2014

The goal is to target C preprocessors, not to show bugs in poorly implemented preprocessors. Your workaround could cause unintended extra scans to macros, perhaps even on MSVC(as their preprocessor doesn't work in a sane way).

@pfultz2 pfultz2 closed this as completed Dec 2, 2014
@MarcusJohnson91
Copy link

Not really relevant anymore with MSVC's conformant preprocessor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants