POV-Ray : Newsgroups : povray.advanced-users : Passing function to macros? : Re: Passing function to macros? Server Time
29 Jul 2024 12:25:38 EDT (-0400)
  Re: Passing function to macros?  
From:
Date: 5 Apr 2002 17:39:28
Message: <4r9saugdvotfhnuj5m861fgqks0ei3reb8@4ax.com>
On Sat, 6 Apr 2002 00:33:10 +0200, "Rune" <run### [at] mobilixnetdk> wrote:
> I'm not sure - is it supposed in beta 15 to be possible to pass functions to
> macros? How do I do that? ...when using more than just the x, y, and z
> variables?

#local Sum=function( A , B , C , D , E , F ) { A + B + C + D + E + F };
#macro Run( F )
  #local Result = F( 1,2,3,4,5,6 );
  #warning str( Result , 0 , -1 )
#end
Run( function(A,B,C,D,E,F){ Sum(A,B,C,D,E,F) } )
  
ABX


Post a reply to this message

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