02-14-2021, 11:55 AM
In the attached file the code
generates the following error
It does not happen if I replace macro with its expanded contents. It does not seem to depend on the number of times I use the macro, or any of the parameters in the macro. So I am somewhat mystified by it.
The code is:
Code:
("PieceColour" "Black" "#2c2d28" P2)
Code:
Define has more than 1000 expansions '(piece Colour #3 ...'.
The code is:
Code:
// #1 - colour string
// #2 - hex colour
// #3 - side
(define "PieceColour"
(piece Colour #3 #1 fillColour:(colour #2))
(piece Rename #3 piece:#1 "disc")
)