POV-Ray : Newsgroups : povray.general : __FILE__ and __LINE__ equiv. in POV macros? : Re: __FILE__ and __LINE__ equiv. in POV macros? Server Time
12 Aug 2024 11:22:51 EDT (-0400)
  Re: __FILE__ and __LINE__ equiv. in POV macros?  
From: John VanSickle
Date: 22 Feb 1999 20:23:22
Message: <36D20433.9BBBD359@erols.com>
John M. Dlugosz wrote:
> 
> I can use #error, #warning, etc. to output interesting text.  Is there any
> way to include the location of the problem?
> 
> Something like:
> 
>     #if (foo>bar)
>         #error concat ("Your object is impossible.  Stopped at ", __LINE__,
> "\n")
>    #end

Doesn't the #error directive already spit out the line number of the source?


Post a reply to this message

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