POV-Ray : Newsgroups : povray.off-topic : Colour consoles : Re: Colour consoles Server Time
7 Sep 2024 09:21:54 EDT (-0400)
  Re: Colour consoles  
From: Darren New
Date: 20 Aug 2008 12:07:12
Message: <48ac4130@news.povray.org>
Invisible wrote:
> I cannot for the life of me figure out how to get at 
> symbolic constant names. :-(

Technically, there's no such thing in C as such. The #define substitutes 
the actual value for the name before the "compiler proper" ever sees it.

That's why the C standard requires something like
   f(3 + 2);
to not do any additions before invoking f(5). Otherwise, people would 
hesitate to use something like
#define LAST (PREV+1)


-- 
Darren New / San Diego, CA, USA (PST)


Post a reply to this message

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