Replace static initializers with a proper #define in .h files

Francois Gouget fgouget at free.fr
Sat Sep 14 12:34:39 CDT 2002


On Sat, 14 Sep 2002, Dmitry Timoshkov wrote:

> Hello.
>
> Changelog:
>     Dmitry Timoshkov <dmitry at codeweavers.com>
>     Replace static initializers with a proper #define in .h files.

Are defines really better?

It seemed to me that they had at least one disadvantage: the value is
duplicated each time the define is used. Hmmm, I just retested and it
looks as if I was wrong.

Anyway, what are the pros and cons?


-- 
Francois Gouget         fgouget at free.fr        http://fgouget.free.fr/
           Cahn's Axiom: When all else fails, read the instructions.




More information about the wine-devel mailing list