Visual C++ limits macro arguments to 127
Closed this issue · 7 comments
personalmountains commented
Both examples fail to compile on Visual C++ 16.0 P1 because macro arguments are limited to 127:
> cl /std:c++latest /permissive- example.x.cpp
Microsoft (R) C/C++ Optimizing Compiler Version 19.20.27027.1 for x64
Copyright (C) Microsoft Corporation. All rights reserved.
example.x.cpp
wise_enum_generated.h(30): fatal error C1112: compiler limit:
'258' too many macro arguments, only '127' allowed
Dynad commented
I'm getting the same error with Visual Studio 2017 Release x64.
OOPMan commented
Also getting this. Tried using the Python script to generate a wise_enum_generated.h with fewer arguments but it still seems to break :-/
OOPMan commented
I tried 127 and then also 125 when 127 failed with an error about the macro taking 129 argument. The new errors seemed to be something about mismatched braces.
As with the others, this is VS2017
OOPMan commented
@frank-amy I think I ended up not using wise_enum