|
![](/i/fill.gif) |
Some times (or better: many many times) I use an include file or a macro
(mainly those made by Colefax :) ) and I set parameters for it by #declaring
identifiers but I make a typing mistake (like typing Deform_Mesh or
defor_mesh or whatever instead of deform_mesh) and then I wonder why it
doesn't work. Then I have to search through all the 30 #declares to
see if one of them is incorrect.
Wouldn't it be nice to have a warning option in povray just like in
most C (or whatever language) compilers? This option would turn on
warnings of the type "Identifier declared but never used" and I would
immediatly see if I mistyped an identifier.
Of course there's one big problem with this: If you include, for
example, colors.inc, you will get a few warnings...
There should be a way to exclude parts of the code from being tested
for this kind of warnings. Something like this:
#no_warnings
#include "colors.inc"
#include "textures.inc"
#end
#include "coolmacro.inc"
...
The warning code could also test other things. It would be nice to see
warning messages like:
Warning: CSG object has coincident surfaces.
Warning: The output image file is used in image_map
etc...
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
![](/i/fill.gif) |