Mailing List archive

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

[vdr] Re: plugins reentrance?



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.

-- 
Dick Streefland                    ////               De Bilt
dick.streefland@xs4all.nl         (@ @)       The Netherlands
------------------------------oOO--(_)--OOo------------------





Home | Main Index | Thread Index