[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
- Re: [ft-devel] MSVC build woes !, (continued)
- Re: [ft-devel] MSVC build woes !, John Emmas, 2013/06/11
- Re: [ft-devel] MSVC build woes !, Werner LEMBERG, 2013/06/11
- Re: [ft-devel] MSVC build woes !, Robin Watts, 2013/06/11
- Re: [ft-devel] MSVC build woes !, John Emmas, 2013/06/11
- Re: [ft-devel] MSVC build woes !, J. Ali Harlow, 2013/06/11
- Re: [ft-devel] MSVC build woes !, John Emmas, 2013/06/11
- Re: [ft-devel] MSVC build woes !, Werner LEMBERG, 2013/06/12
- Re: [ft-devel] MSVC build woes !, John Emmas, 2013/06/12
- Re: [ft-devel] MSVC build woes !, Werner LEMBERG, 2013/06/12
- Re: [ft-devel] MSVC build woes !, John Emmas, 2013/06/14
- Re: [ft-devel] MSVC build woes !,
Werner LEMBERG <=