POV-Ray : Newsgroups : povray.tools.general : Undefining #declares : Re: Undefining #declares Server Time
18 May 2024 09:02:48 EDT (-0400)
  Re: Undefining #declares  
From: François Dispot
Date: 26 Nov 2004 10:46:29
Message: <41a74fd5$1@news.povray.org>
Warp wrote:
>   How about making it a portable command-line utility and releasing the
> source?

How about making it as a macro?

Something like:
#macro undefall(file_in, tmp_file)
/* some magic code reading file_in, searching for #declares,
outputting the corresponding #undefs in tmp_file while
handling multiple declaration cases, arrays..., then
#including tmp_file (thus everything gets undeclared)*/
#end

The only missing step would be the tmp_file deletion.

-- 


Post a reply to this message

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