diff options
author | Attila Molnar <attilamolnar@hush.com> | 2015-01-23 15:59:35 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2015-01-23 15:59:35 +0100 |
commit | b705c6426818ba8cedfd00d1a84dab8ff0d0f1a0 (patch) | |
tree | e4f403e4ec56ed55c98e65dfb22a9f4c94531508 /src/cull_list.cpp | |
parent | 9add848772555f527b625953cb45c46850ac1274 (diff) | |
parent | 365e2b45f871d80debb135b0f26766538d10809d (diff) |
Merge branch 'master+no-rtti'
Diffstat (limited to 'src/cull_list.cpp')
-rw-r--r-- | src/cull_list.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cull_list.cpp b/src/cull_list.cpp index 5cbe3aef3..73f2def51 100644 --- a/src/cull_list.cpp +++ b/src/cull_list.cpp @@ -21,7 +21,9 @@ #include "inspircd.h" +#ifdef INSPIRCD_ENABLE_RTTI #include <typeinfo> +#endif void CullList::Apply() { @@ -46,8 +48,12 @@ void CullList::Apply() classbase* c = list[i]; if (gone.insert(c).second) { +#ifdef INSPIRCD_ENABLE_RTTI ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "Deleting %s @%p", typeid(*c).name(), (void*)c); +#else + ServerInstance->Logs->Log("CULLLIST", LOG_DEBUG, "Deleting @%p", (void*)c); +#endif c->cull(); queue.push_back(c); } |