POV-Ray : Newsgroups : povray.programming : UNIX POVRay does not exit with failure on error : Re: UNIX POVRay does not exit with failure on error Server Time
30 Jun 2024 12:39:16 EDT (-0400)
  Re: UNIX POVRay does not exit with failure on error  
From: Thorsten Froehlich
Date: 11 Aug 2004 18:12:38
Message: <411a99d6@news.povray.org>
In article <411a97ec@news.povray.org> , Wolfgang Wieser 
<wwi### [at] nospamgmxde>  wrote:

> Well, at least the "magic number 1" needs to be added since longjmp cannot
> be used to return the value 0. This is because 0 is used as setjmp return
> value to indicate direct return (i.e. not due to a call to longjmp).

No, you need an if/else and return something positive in this case (i.e.
"1").  While not documented, you are practically promised the exit function
is only called with zero or positive values.

    Thorsten

____________________________________________________
Thorsten Froehlich, Duisburg, Germany
e-mail: tho### [at] trfde

Visit POV-Ray on the web: http://mac.povray.org


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.