Re: [Doxygen-users] Help with preprocessing macros
Brought to you by:
dimitri
|
From: Reyes P. <Re...@na...> - 2001-08-07 16:33:54
|
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
----- Original Message -----
From: "Steve Santacroce" <twe...@ya...>
To: <dox...@li...>
Sent: Tuesday, August 07, 2001 10:03 AM
Subject: [Doxygen-users] Help with preprocessing macros
> I am having trouble understanding just how to get the
> auto-generated MFC macros to be ignored by doxygen. I
> don't like the idea of just inserting a semicolon at
> the end of the macros, because we need to keep it as
> simple as possible for all the coders. I read the
> preprocessing section of the help, but I think I am
> more confused now than I was before. An example would
> help me greatly, one that directly applies to me.
> Given these two macros:
>
> DECLARE_MESSAGE_MAP()
> DECLARE_OLECREATE(multiple class names here)
>
> How would I go about having Doxygen get around them?
> Thank you for your time and help!
>
> __________________________________________________
> Do You Yahoo!?
> Make international calls for as low as $.04/minute with Yahoo! Messenger
> http://phonecard.yahoo.com/
>
> _______________________________________________
> Doxygen-users mailing list
> Dox...@li...
> http://lists.sourceforge.net/lists/listinfo/doxygen-users
>
|