> 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
_______________________________________________
Freetype-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/freetype-devel