freetype-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ft-devel] MSVC build woes !


From: Werner LEMBERG
Subject: Re: [ft-devel] MSVC build woes !
Date: Tue, 11 Jun 2013 17:16:14 +0200 (CEST)

> That being the case, this solution works for MSVC:-
>
>         #define FT_ASSERT( condition )                              \
>               {                                \
>                     if ( !( condition ) )                                   \
>                       FT_Panic( "assertion failed on line %d of file %s\n", \
>                                 __LINE__, __FILE__ );                        \
>               }

See

  http://stackoverflow.com/questions/257418/do-while-0-what-is-it-good-for

why your suggestion fails in general.

> In fact, a similar strategy is already being used in the definition
> of 'FT_THROW' [...]

Not at all.  The definition of FT_THROW uses parentheses, not braces.


    Werner



reply via email to

[Prev in Thread] Current Thread [Next in Thread]