ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/common/caldefn.c
(Generate patch)

Comparing ray/src/common/caldefn.c (file contents):
Revision 2.27 by greg, Sat Dec 28 18:05:13 2019 UTC vs.
Revision 2.28 by greg, Thu Apr 2 18:00:34 2020 UTC

# Line 702 | Line 702 | getchan(void)                  /* A -> $N = E1 */
702  
703  
704   static double                   /* evaluate a variable */
705 < dvalue(char  *name, EPNODE      *d)
705 > dvalue(char *name, EPNODE *d)
706   {
707      EPNODE  *ep1, *ep2;
708      
# Line 714 | Line 714 | dvalue(char  *name, EPNODE     *d)
714      ep1 = d->v.kid->sibling;                    /* get expression */
715      if (ep1->type == NUM)
716          return(ep1->v.num);                     /* return if number */
717 +    if (esupport&E_RCONST && d->type == ':') {
718 +        wputs(name);
719 +        wputs(": assigned non-constant value\n");
720 +    }
721      ep2 = ep1->sibling;                         /* check time */
722      if (eclock >= MAXCLOCK)
723          eclock = 1;                             /* wrap clock counter */

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines