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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user