Closed Bug 188925 Opened 22 years ago Closed 22 years ago

Remove comment about NS_ASSERTION being deprecated

Categories

(Core :: XPCOM, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: john, Assigned: dougt)

Details

bsmedberg points out these comments that show NS_ASSERTION as being deprecated:

http://lxr.mozilla.org/seamonkey/source/xpcom/glue/nsDebug.h#206

These are *so* not deprecated, or if they are supposed to be, someone needs to
inform every active dev on Mozilla.  NS_WARNING and NS_PRE/POSTCONDITION are
other macros that are used under this banner of deprecation.
As a note, NS_ABORT_IF_FALSE and NS_ASSERTION differ in one important regard --
NS_ABORT_IF_FALSE, in debug build, _will_ terminate execution of the program
when it triggers.  Given how many bogus asserts we have, replacing one with the
other would be ... difficult.
er, comment 1 applies to Linux.  On the mac, the program is not terminated; not
sure about windows.
yup.  done. 

Checking in nsDebug.h;
/cvsroot/mozilla/xpcom/glue/nsDebug.h,v  <--  nsDebug.h
new revision: 1.10; previous revision: 1.9
done
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.