[Swan-dev] lsw_abort => passert

D. Hugh Redelmeier hugh at mimosa.com
Sun Mar 19 13:15:08 UTC 2017


| New commits:
| commit 43a57bccf46d83b69391805b4f1528c3ea9ba658
| Author: Andrew Cagney <cagney at gnu.org>
| Date:   Fri Mar 10 15:57:55 2017 -0500
| 
|     include: delete lsw_abort(); use passert() instead
|     
|     They end up in the same place, and passert() provides more
|     information.  This also means that the only references to __FILE__
|     are in passert.h.

Did you check that the very early calls to lsw_abort can safely be
replaced by passerts?  These are the ones in plutomain.c. (I have
not.)  Logging may not be initialized.

Of course lsw_abort did logging too.  But when I wrote those calls,
they were calls to abort().

Logging, if it works, is definitely a good idea.


More information about the Swan-dev mailing list