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:
jst%netscape.com
2002-01-24 09:20:51 +00:00
parent 7af4c8d1f2
commit b9772d48fe
21 changed files with 240 additions and 227 deletions

View File

@@ -136,7 +136,7 @@ nsProxyEventClass::GetNewOrUsedClass(REFNSIID aIID)
nsMemory::Free(iid);
}
NS_VERIFY(isISupportsDescendent,"!isISupportsDescendent");
NS_ASSERTION(isISupportsDescendent, "!isISupportsDescendent");
if (isISupportsDescendent)
{