[Ns-bugs] [Bug 339] Unconditional assert API proposed

bugzilla-daemon@nsnam-www.ece.gatech.edu bugzilla-daemon at nsnam-www.ece.gatech.edu
Fri Sep 12 10:11:16 PDT 2008


http://www.nsnam.org/bugzilla/show_bug.cgi?id=339





------- Comment #5 from raj.b at gatech.edu  2008-09-12 13:11 -------
(In reply to comment #4)
> (In reply to comment #3)
> [...]
> > There are 80 instances of NS_FATAL_ERROR (msg) now, though. 
> 
> _Please_ I beg you, do not even consider to change NS_FATAL_ERROR.  Blasphemy! 
> No more gratuitous API breakage please :|
> 
> How about NS_ABORT_IF (condition, message) ?  I don't think you can't get a
> much more explicit name than that...
> 

The fatal error and assert macros are for developer use, completely internally
to the ns-3 codebase.  Why are you concerned with API breakage here?  I'd be
surpised if a "user" even knew these macros existed.

It would however be some sed work to change things.

+1 to Craig's suggestion, for inclusion in ns-3.3


-- 
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


More information about the Ns-bugs mailing list