diff options
Diffstat (limited to 'engines/titanic/core/message_target.h')
-rw-r--r-- | engines/titanic/core/message_target.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/engines/titanic/core/message_target.h b/engines/titanic/core/message_target.h index 0f43bcd2c5..e5bdf3e08a 100644 --- a/engines/titanic/core/message_target.h +++ b/engines/titanic/core/message_target.h @@ -68,6 +68,21 @@ protected: \ return &messageMap; \ } +#define EMPTY_MESSAGE_MAP(theClass, baseClass) \ + const MSGMAP *theClass::getMessageMap() const \ + { return getThisMessageMap(); } \ + const MSGMAP *theClass::getThisMessageMap() \ + { \ + typedef theClass ThisClass; \ + typedef baseClass TheBaseClass; \ + static const MSGMAP_ENTRY _messageEntries[] = { \ + { (PMSG)nullptr, nullptr } \ + }; \ + static const MSGMAP messageMap = \ + { &TheBaseClass::getThisMessageMap, &_messageEntries[0] }; \ + return &messageMap; \ + } + class CMessageTarget: public CSaveableObject { DECLARE_MESSAGE_MAP public: |