POV-Ray : Newsgroups : povray.general : using a charact as #macro paramater? : using a charact as #macro paramater? Server Time
7 Aug 2024 15:20:34 EDT (-0400)
  using a charact as #macro paramater?  
From: Steve
Date: 27 Aug 2001 11:19:42
Message: <slrn9okp6q.t5t.steve@zero-pps.localdomain>
Hi All

I've written a small macro to place chess pieces, I'm trying to call 
the macro like this:

object{ place_piece(Black_Pawn, H, 2, 0) }

I've also tried 

object{ place_piece(Black_Pawn, "H", 2, 0) }

But keep getting error messages, I've changed the 
values in the switch evaluation to include the quote 
marks etc but nothing seems to be working. 

The macro doesn't seem to be able to take a character as a 
paramater.  

I'm getting errors like:

Parsing................................union{
      object{place_piece(Black_Pawn, "H", 2, 0)
object{Chess_Piece

       #switch (XFile <----ERROR

/home/sjlen/pov/blchess.pov:249: error: numeric expression expected but string
identifier found instead.

Any help gratefully receive. 

--
Cheers
Steve              email mailto:ste### [at] zeroppsuklinuxnet

%HAV-A-NICEDAY Error not enough coffee  0 pps. 

web http://www.zeropps.uklinux.net/

or  http://start.at/zero-pps

  4:13pm  up 44 days, 18:17,  2 users,  load average: 1.14, 1.13, 1.04


Post a reply to this message

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