diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/classdef.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/classdef.cpp b/src/classdef.cpp index 787cd5e..28308db 100644 --- a/src/classdef.cpp +++ b/src/classdef.cpp @@ -671,6 +671,10 @@ void ClassDef::internalInsertMember(MemberDef *md, case MemberType_Variable: addMemberToList(MemberListType_variableMembers,md,FALSE); break; + case MemberType_Define: + warn(md->getDefFileName(),md->getDefLine()-1,"A define (%s) cannot be made a member of %s", + md->name().data(), this->name().data()); + break; default: err("Unexpected member type %d found!\n",md->memberType()); } |