[vlc-devel] commit: lpcm: abort() is a better solution here (Jean-Baptiste Kempf )

Rémi Denis-Courmont remi at remlab.net
Wed Dec 16 12:53:44 CET 2009


On Wed, 16 Dec 2009 11:29:24 +0100 (CET), git at videolan.org (git version
control) wrote:
> vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Wed Dec 16
> 11:29:04 2009 +0100| [5fdee8ec9899456231c2bd584614ba41c4191ed3] |
> committer: Jean-Baptiste Kempf
> 
> lpcm: abort() is a better solution here

No, it's much worse. assert() prints a diagnostic message with a source
code file name, a line number and the assertion. abort() just terminates
the process. Thus cannot be traced unless core dumping is enabled or a
debugger is running, neither of which are normally true.

-- 
Rémi Denis-Courmont
http://www.remlab.net
http://fi.linkedin.com/in/remidenis




More information about the vlc-devel mailing list