22 #ifndef ULTIMA8_MISC_CLASSTYPE_H 23 #define ULTIMA8_MISC_CLASSTYPE_H 31 const char *_className;
33 return this == &other;
37 #define ENABLE_RUNTIME_CLASSTYPE() \ 38 static const RunTimeClassType ClassType; \ 39 const RunTimeClassType & GetClassType() const override { return ClassType; } 41 #define ENABLE_RUNTIME_CLASSTYPE_BASE() \ 42 static const RunTimeClassType ClassType; \ 43 virtual const RunTimeClassType & GetClassType() const { return ClassType; } 45 #define DEFINE_RUNTIME_CLASSTYPE_CODE(Classname) \ 46 const RunTimeClassType Classname::ClassType = { #Classname }; Definition: detection.h:27
Definition: classtype.h:30