|  |  | In article <3a30dfb5@news.povray.org>, Warp <war### [at] tag povray  org> 
wrote:
Try something like this:
Get_Token();
if(Token.Token_Id == COMMA_TOKEN)
{
    SecondParam = (int)Parse_Float();
}
else
{
    Unget_Token();
}
In other words, peek at the next token to see if it is a comma, in which 
case another parameter has been specified. A more generalized version of 
this could make a nice macro...
-- 
Christopher James Huff
Personal: chr### [at] mac  com, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tag  povray  org, http://tag.povray.org/
<>< Post a reply to this message
 |  |