dstlen < 0 for MultiByteToWideChar / WideChatToMultiByte

Dmitry Timoshkov dmitry at codeweavers.com
Wed Sep 16 21:41:17 CDT 2009


"Michael Stefaniuc" <mstefani at redhat.com> wrote:

> +/*
> + * Produce a compile error if we pass a dstlen < 0 to this functions.
> + * BUILD_BUG_ON() shamelessly ripped from the Linux Kernel.
> + */
> +#define BUILD_BUG_ON(condition) ((void)sizeof(char[1 - 2*!!(condition)]))

C_ASSERT does a similar thing.

-- 
Dmitry.



More information about the wine-devel mailing list