[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

abort () is scm_gc_sweep ()

From: Ludovic Courtès
Subject: abort () is scm_gc_sweep ()
Date: Fri, 10 Oct 2003 15:34:31 +0200
User-agent: Mutt/1.5.4i [Guile enabled]


In function scm_gc_sweep () (gc.c:1922) appears the following condition:

  if (scm_mallocated < m)
    abort ();

The comment above the abort () is very clear about why this happens.
However, since the triggering of this abort () can only be due to the
non respect of Guile's programming conventions by the programmer, I
think it would be a good idea to rather use something like

  assert (scm_mallocated < m);

instead of just abort ().  At least, this would allow programmers who
don't have the Guile source tree on their computer to google and see
what this assertion is about. ;)


PS : Please, CC me in replies.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]