POV-Ray : Newsgroups : povray.general : number of macro params : number of macro params Server Time
12 Aug 2024 07:27:33 EDT (-0400)
  number of macro params  
From: Margus Ramst
Date: 9 Mar 1999 20:32:14
Message: <36e5cb9e.0@news.povray.org>
I discovered that a macro cannot take more than 19 parameters. I have not
seen
this limitation mentioned in the docs.
Example:

#macro Test(A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T)
#declare X=1;
#end

Test(1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20)

This returns "too many parameters"
Reduce the number of params by one and it parses just fine. Any ideas as to
why this is so?

Margus


Post a reply to this message

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