Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
None
-
5.14.0, 5.14.1
-
None
Description
Namespace + special way of defining enum’s
The main part of the code:
namespace svr { enum class X { // ..\CrashMoc\FmMain.h:8: Parse error at "{" #define SL(x) x, #include "enum_X.h" }; }
// enum_X.h #ifndef SL #error You should define SL(x) macro right beforehand! #define SL(x) // to gag an error in IDE #endif SL(ALPHA) SL(BRAVO) #undef SL
Worked in 5.13.
Why? Because enum members aren’t just members, we tie some properties to them, and to make members in sync with arrays, we use that header.