Re: [GD-Windows] Strict ANSI and <windows.h>
Brought to you by:
vexxed72
From: Pierre T. <p.t...@wa...> - 2002-11-03 23:06:17
|
> My complaint about this technique is that I then have to disable warning > C4127: conditional expression is constant, something I'm not willing to do. > Anyone have a solution for that, but has no runtime impact? Maybe something like this : inline bool False(){ return false; } #define for if(False()){} else for You can also use a global extern variable instead of the inline function. You can also use this in Debug builds only, if you fear it adds a "runtime impact". Pierre |