POV-Ray : Newsgroups : povray.general : Macro with variable number of parameters... : Re: Macro with variable number of parameters... Server Time
29 Jul 2024 18:16:49 EDT (-0400)
  Re: Macro with variable number of parameters...  
From: Nieminen Mika
Date: 5 Jul 1999 02:16:17
Message: <37804db1@news.povray.org>
In povray.general Ron Parker <par### [at] fwicom> wrote:
: Nah.  But varargs is a thing that can't be done any other way.  I have
: this function called ODS that takes printf-style arguments, sprintf's
: into a buffer, and calls OutputDebugString.  I don't know of any other
: sane way to do that.  Streams are not considered sane, BTW.  

  sprintf is evil (unless you know exactly the size of the output).

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