1
0
mirror of https://github.com/anope/anope.git synced 2026-07-10 15:43: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
+1 -1
View File
@@ -66,7 +66,7 @@ class CommandCSSetMLock : public Command
Anope::string param = params[paramcount];
ChannelModeParam *cmp = dynamic_cast<ChannelModeParam *>(cm);
ChannelModeParam *cmp = debug_cast<ChannelModeParam *>(cm);
if (!cmp || !cmp->IsValid(param))
continue;