Fixing bug 120899. Changing the NS_WARN_IF_FALSE() macro so that it can't be mis-used in optimized builds. This change makes the macro not usable in expressions that are supposed to be evaluated in release code since the macro now expands to nothing in non-debug builds. Also eliminate NS_VALIDATE which is equally mis-usable. r=dbaron@fas.harvard.edu, sr=brendan@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@112678 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -136,7 +136,7 @@ nsProxyEventClass::GetNewOrUsedClass(REFNSIID aIID)
|
||||
nsMemory::Free(iid);
|
||||
}
|
||||
|
||||
NS_VERIFY(isISupportsDescendent,"!isISupportsDescendent");
|
||||
NS_ASSERTION(isISupportsDescendent, "!isISupportsDescendent");
|
||||
|
||||
if (isISupportsDescendent)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user