POV-Ray : Newsgroups : povray.off-topic : Random C craziness : Re: Random C craziness Server Time
7 Sep 2024 05:09:04 EDT (-0400)
  Re: Random C craziness  
From: Vincent Le Chevalier
Date: 24 Jul 2008 09:07:24
Message: <48887e8c$1@news.povray.org>
Invisible a écrit :
>>> cont is a pointer to a function that is expected to return a pointer 
>>> to a function.  The code here causes a series of functions to be 
>>> called, each one specifying another function to be called afterwards 
>>> by returning the address of the function to be called.
>>>
>>
>> I was thinking the same, but I can't seem to find the right type 
>> definition to make it work without casting to and from void*... Which 
>> is apparently illegal 
> 
> This is example code, so it might not be literally runnable... (It might 
> be simplified somewhat.)
> 

Does it still provide the declaration of cont, by any chance?

-- 
Vincent


Post a reply to this message

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