POV-Ray : Newsgroups : povray.advanced-users : Break out of main while (1) loop using #break directive in a sub-loop state= : Re: Break out of main while (1) loop using #break directive in a sub-loop s= Server Time
5 Feb 2023 00:07:13 EST (-0500)
  Re: Break out of main while (1) loop using #break directive in a sub-loop s=  
From: jr
Date: 16 Jan 2023 12:15:00
Message: <web.63c585887c2309d2fbdc16836cde94f1@news.povray.org>
hi,

"Bald Eagle" <cre### [at] netscapenet> wrote:
> ...
> I'm assuming some, or all of those #break statements are meant to exit the
> #while(1), but of course, they don't, and so I'm stuck in the dreaded infinite
> loop.
>
> Please advise.

just to add to AM's advice, use macros where possible, then '#break' can be used
to terminate early.
<https://wiki.povray.org/content/Reference:Conditional_Directives#The_switch.2C_case.2C_range_and_break_Directives>


regards ,jr.




Post a reply to this message

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