POV-Ray : Newsgroups : povray.general : macros returning values : Re: macros returning values Server Time
5 Aug 2024 14:17:53 EDT (-0400)
  Re: macros returning values  
From: TinCanMan
Date: 6 Sep 2002 13:53:41
Message: <3d78eba5$1@news.povray.org>
Depending on the complexity of what's going on you can also pass variables
like this:

#declare b=0;
#declare c=0;

#macro Makebca(a,b,c)
    #local b=a;
    #local c=a;
#end

Makebca(1,b,c)


Obviously this is a very stupid macro but it illustrates the concept, the
catch is you have to predefine the variables (ie, b & c)

-tgq


Post a reply to this message

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