1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 09:03:13 +02:00

Added debug_cast which uses dynamic_cast on debug builds, and static_cast on release builds

This commit is contained in:
Adam
2010-07-27 21:31:13 -04:00
parent 66c0e280ee
commit 4b870cc5f9
20 changed files with 83 additions and 54 deletions
+2 -2
View File
@@ -160,7 +160,7 @@ Anope::string get_mlock_modes(ChannelInfo *ci, int complete)
if (cm->Type == MODE_PARAM)
{
cmp = dynamic_cast<ChannelModeParam *>(cm);
cmp = debug_cast<ChannelModeParam *>(cm);
ci->GetParam(cmp->Name, param);
@@ -343,7 +343,7 @@ void check_modes(Channel *c)
/* Add the eventual parameter */
if (cm->Type == MODE_PARAM)
{
ChannelModeParam *cmp = dynamic_cast<ChannelModeParam *>(cm);
ChannelModeParam *cmp = debug_cast<ChannelModeParam *>(cm);
if (!cmp->MinusNoArg)
{