为什么DECLARE_MESSAGE_MAP()的宏定义里有这么多斜杆\

来源:百度知道 编辑:UC知道 时间:2024/05/19 08:57:02
下面是DECLARE_MESSAGE_MAP() 宏定义的一部分,为什么里面有这么多斜杆\
#ifdef _AFXDLL
#define DECLARE_MESSAGE_MAP() \
private: \
static const AFX_MSGMAP_ENTRY _messageEntries[]; \
protected: \
static AFX_DATA const AFX_MSGMAP messageMap; \
static const AFX_MSGMAP* PASCAL _GetBaseMessageMap(); \
virtual const AFX_MSGMAP* GetMessageMap() const; \

因为他们都是一行,斜杆是表示下面的一行是上面一行的继续

DECLARE_MESSAGE_MAP() 将被替换下面的字符串:
private: static const AFX_MSGMAP_ENTRY _messageEntries[]; protected: static AFX_DATA const AFX_MSGMAP messageMap; static const AFX_MSGMAP* PASCAL _GetBaseMessageMap(); virtual const AFX_MSGMAP* GetMessageMap() const;

\
表示处在同一行。

主要就是为了可读性。