RE: [Doxygen-users] Help with preprocessing macros
Brought to you by:
dimitri
|
From: Prikryl,Petr <PRI...@sk...> - 2001-08-10 14:08:40
|
Hi Dimitri,
It would be nice to put the PREDEFINED example for Microsoft MFC/ATL,
as shown below, somewhere into doxygen documentation. I remember
that I once had also solve the problem. MSVC compiler is quite widespread
concerning the development on MS Windows platforms, and it requires
some effort to capture the quantity of macros shown below.
Thanks,
Petr
--
Petr Prikryl, SKIL, spol. s r.o., pri...@sk...
> -----Original Message-----
> From: Reyes Ponce [SMTP:Re...@na...]
> Sent: Tuesday, August 07, 2001 6:36 PM
> To: dox...@li...
> Subject: Re: [Doxygen-users] Help with preprocessing macros
>
> This is what I've come up with so far. I started with the ATL list in the
> FAQ and added to it as I've encountered more problems. Most of this is MFC
> and ATL stuff. Your milage may vary...
>
> PREDEFINED = "DECLARE_INTERFACE(name)=class name" \
> "STDMETHOD(result,name)=virtual result name" \
> "PURE= = 0" \
> THIS_= \
> THIS= \
> DECLARE_REGISTRY_RESOURCEID=// \
> DECLARE_PROTECT_FINAL_CONSTRUCT=// \
> "DECLARE_AGGREGATABLE(Class)= " \
> "DECLARE_REGISTRY_RESOURCEID(Id)= " \
> DECLARE_MESSAGE_MAP = \
> BEGIN_MESSAGE_MAP=/* \
> END_MESSAGE_MAP=*/// \
> BEGIN_COM_MAP=/* \
> END_COM_MAP=*/// \
> BEGIN_PROP_MAP=/* \
> END_PROP_MAP=*/// \
> BEGIN_MSG_MAP=/* \
> END_MSG_MAP=*/// \
> BEGIN_PROPERTY_MAP=/* \
> END_PROPERTY_MAP=*/// \
> BEGIN_OBJECT_MAP=/* \
> END_OBJECT_MAP()=*/// \
> DECLARE_VIEW_STATUS=// \
> "STDMETHOD(a)=HRESULT a" \
> "ATL_NO_VTABLE= " \
> "__declspec(a)= " \
> BEGIN_CONNECTION_POINT_MAP=/* \
> END_CONNECTION_POINT_MAP=*/// \
> "DECLARE_DYNAMIC(class)= " \
> "IMPLEMENT_DYNAMIC(class1, class2)= " \
> "DECLARE_DYNCREATE(class)= " \
> "IMPLEMENT_DYNCREATE(class1, class2)= " \
> "IMPLEMENT_SERIAL(class1, class2, class3)= " \
> "DECLARE_MESSAGE_MAP()= " \
> TRY=try \
> "CATCH_ALL(e)= catch(...)" \
> END_CATCH_ALL= \
> "THROW_LAST()= throw"\
> "RUNTIME_CLASS(class)=class" \
> "MAKEINTRESOURCE(nId)=nId" \
> "IMPLEMENT_REGISTER(v, w, x, y, z)= " \
> "ASSERT(x)=assert(x)" \
> "ASSERT_VALID(x)=assert(x)" \
> "TRACE0(x)=printf(x)" \
> "OS_ERR(A,B)={ #A, B }" \
> __cplusplus
>
[the end]
|