POV-Ray : Newsgroups : povray.advanced-users : A macro I'm proud of I think (public Beta) : Re: A macro I'm proud of I think (public Beta) Server Time
29 Jul 2024 18:25:31 EDT (-0400)
  Re: A macro I'm proud of I think (public Beta)  
From: Chris Huff
Date: 30 Apr 2001 15:58:35
Message: <chrishuff-325259.14560530042001@news.povray.org>
In article <3aed6365@news.povray.org>, "Wlodzimierz ABX Skiba" 
<abx### [at] abxartpl> wrote:

> I found in tokenize.c entry
>   {SGN_TOKEN, "sgn"}, /*Chris Huff jan 2001*/
> then look for SGN_TOKEN in other files and found in express.c
>   case SGN_TOKEN: /*Chris Huff "sign() function"*/
> then forgot about sgn() and remembered sign()
> 
> but now I write:
>   #version unofficial megapov 0.7;
>   #warning concat(str(sgn(100),0,0),"\n")
> 
> and it won't work ???

Because, as I said, it's turned off...you left out the #ifdef 
SignPatch...#endif blocks surrounding those lines. The definition of 
SignPatch in frame.h is commented out, and a reason given:

/*#define SignPatch*/ /*Chris Huff July 2000 (added to mp jan 2001)*/
/* not truned on because of the conflict with sign in the isosurface. 
sng and sign ???? no :) */

-- 
Christopher James Huff
Personal: chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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