Beautifying of Unicode mode check in tests

Andriy Palamarchuk apa3a at yahoo.com
Wed Jan 23 07:41:50 CST 2002


There was a few objections to have ugly conditionals
for Unicode-specific tests, like
#ifdef _UNICODE
 ... unicode-specific tests ...
#endif

This problem can be resolved by using instead function
or macro as Unicode indicator. Value of this indicator
will be defined, basing on presence of _UNICODE macro.

Now we'll have better-looking check, like:
if (TEST_UNICODE)
{
 ... unicode-specific tests ...
}

Hope now we'll have one less thing to argue about ;-)

Andriy Palamarchuk

__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/




More information about the wine-devel mailing list