Mailing List archive

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

[vdr] Re: plugins reentrance?



On Monday 06 December 2004 23:49, Dick Streefland wrote:
> Stefan Taferner <taferner@kde.org> wrote:
> | IMO a better way would be:
> |
> | #define warn_func(x) \
> |   #warning "Using non thread safe function call" \
> |   printf("%s:%d: replace %s with %s_r here\n",__FILE__,__LINE__,x),x
>
> This won't work, because a macro expansion is not rescanned for
> preprocessor directives. I think "pragma GCC poison ..." is a
> better option.

You are right, of course :-)

--Stefan




Home | Main Index | Thread Index