[Development] moc 4.8.6 & macros

Samuel Gaist samuel.gaist at edeltech.ch
Wed Sep 17 17:42:40 CEST 2014


On 17 sept. 2014, at 17:20, Olivier Goffart <olivier at woboq.com> wrote:

> On Tuesday 16 September 2014 23:52:36 Thiago Macieira wrote:
>> On Tuesday 16 September 2014 23:00:06 Samuel Gaist wrote:
>>> Good question, I'll have to check.
>>> If that where not the case, what should I write to give additional include
>>> paths to moc ?
>> 
>> Replace QT_DEPRECATED_SINCE with the actual contents of the macro. Also
>> expand QT_VERSION_CHECK.
>> 
>> Qt 4 moc does not expand macros.
> 
> Qt 4 moc does expand macros in #if directive.
> 
> (and QT_DEPRECATED_SINCE is defined to 1 for Qt4 in qtserialportglobal.h)
> 

Indeed it's defined, but it looks like moc doesn't handle the case when the macro has one or more parameter(s) even if defined in the same file

Samuel




More information about the Development mailing list