[Interest] how to add comments of member function defined with macro?

tang ke tangk at lemote.com
Tue Feb 26 08:12:17 CET 2013


On 02/26/2013 02:52 PM, tang ke wrote:
> On 02/26/2013 01:11 PM, Thiago Macieira wrote:
>> On terça-feira, 26 de fevereiro de 2013 11.54.43, tang ke wrote:
>>> #define _DECLARE_INT2ENUMSTRING(Enum) \
>> Note that underscore + capital letter is reserved to the compiler. You should
>> not use that combinations.
>>
>> The compilers have been actively using those, like the new C11 _Atomic and
>> _Bool and _Complex types, the _Unwind* functions and the _Z C++ prefix.
> Thanks very much, I will delete the underscore.
>
> But This is not solve my problem.
>
> Maybe I will expand this macro use the gcc -e ?
>
> How to solve this issue with qt source code. such as Q_OBJECT.
I search the Q_OBJECT macro, and I found that:
Q_OBJECT macro defined the metaObject funtion, and author add the \fn 
QMetaobject* QObject::metaObject() const to comments.

But the author add the \macro Q_OBJECT to comments also.

so Maybe I add the \macro _DECLARE_INT2ENUMSTRING to comments. it will work.
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> http://lists.qt-project.org/mailman/listinfo/interest
>


-- 
应用部  唐科
TEL : 0512-52308661-88686
FAX: 0512-52308688
MP : 18962393077
E-mail: tangk at lemote.com
地址:江苏省常熟市虞山镇梦兰工业园




More information about the Interest mailing list