diff options
| author | 2015-01-22 12:12:41 +0100 | |
|---|---|---|
| committer | 2015-01-22 12:12:41 +0100 | |
| commit | 38b22990eae47525f4e8064a29e585a89788ee58 (patch) | |
| tree | 67795a34e49e9540e7feb0fbb497975778bece11 /src/base.cpp | |
| parent | m_spanningtree Remove public TreeServer methods that are only called from Tre... (diff) | |
Disable typeid() calls unless INSPIRCD_ENABLE_RTTI is defined
Diffstat (limited to 'src/base.cpp')
| -rw-r--r-- | src/base.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/base.cpp b/src/base.cpp index c131f4dae..682899132 100644 --- a/src/base.cpp +++ b/src/base.cpp @@ -23,7 +23,9 @@ #include "inspircd.h" #include "base.h" #include <time.h> +#ifdef INSPIRCD_ENABLE_RTTI #include <typeinfo> +#endif classbase::classbase() { @@ -34,8 +36,12 @@ classbase::classbase() CullResult classbase::cull() { if (ServerInstance) +#ifdef INSPIRCD_ENABLE_RTTI ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "classbase::-%s @%p", typeid(*this).name(), (void*)this); +#else + ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "classbase::- @%p", (void*)this); +#endif return CullResult(); } |
