Add a #define for use in idenifying whether RTTI is enabled.
@@ -16,11 +16,13 @@ __inline static std::string demangle(const char* name) {
}
#define __typename(t) demangle(typeid(t).name()).c_str()
+#define HAS_RTTI 1
#else
#define demangle(name) (name)
#if defined(_CPPRTTI) && defined(_WIN32)
#define __typename(t) typeid(t).name()
+#define HAS_RTTI 1
#else
#define __typename(t) "" /* Unknown */
#endif
