POV-Ray : Newsgroups : povray.advanced-users : Multiple #ifdef question : Re: Multiple #ifdef question Server Time
30 Jul 2024 04:23:45 EDT (-0400)
  Re: Multiple #ifdef question  
From: Nieminen Juha
Date: 8 Mar 2000 04:04:27
Message: <38c6179a@news.povray.org>
I don't think it's possible with a macro. Something like this will not work:

#macro Item(name)
  #ifdef(name)
    do_whatever_with name
  #end
#end

because 'name' _is_ always defined in the context of the macro.

-- 
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

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