Steven Edwards wrote:
We discussed something like this years ago. It would be nice if every sort of legacy API that has any sort of hacks for brokeness as part of its implementation, could be isolated and a simple recompile with something like a #define NO_LEGACY_WIN32 so you could recompile without the hacks. Not really that useful for the real world as you need the backward compatibility but it is a nice idea for embedded or non-normal windows targets like ARM.
I think this is like compiler warnings. Some checks are disabled by default as they would cause more harm than good. But there is an option to enable them. It will help to catch bugs in software.