I\'ve been writing an #if DEBUG
, #else
, #endif
fragment of code, and I noticed that Visual Studio doesn\'t let me use autocomplete to
At the beginning of the file define both constant:
#define DEBUG
#define RELEASE
Next, use two if
condition instead of if/else
.
#if DEBUG
// autocomplete works
#endif
#if RELEASE
// autocomplete works
#endif
Of course, you must delete/comment out these defines before compiling the project.
In my opinion, this awkward and fraught with mistakes.