POV-Ray : Newsgroups : povray.newusers : How to use #Macro like a function ? : Re: How to use #Macro like a function ? Server Time
5 Jul 2024 04:03:26 EDT (-0400)
  Re: How to use #Macro like a function ?  
From: Gyscos
Date: 29 Jun 2010 15:40:00
Message: <web.4c2a4b875abfbec8e3006550@news.povray.org>
Wow, I understand what didn't work...
Well, partly...

I used the macro in a declare :

#declare MyVar = MyMacro(MyStuff);

But POV-Ray parsed the macro and found some #if and #else BEFORE the expected
semi-colon...

:-/

So I have to put the semi-colon IN the macro, and not in the #declare line...
:(

I think I'll use extra arguments to return the value instead...


Post a reply to this message

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