The Daily Static
  The Daily Static
UF Archives
Register
UF Membership
Ad Free Site
Postcards
Community

Geekfinder
UFie Gear
Advertise on UF

Forum Rules
& FAQ


Username

Password


Create a New Account

 
 

Back to UserFriendly Strip Comments Index

Random C pre-processor question. by LionsPhil 2004-12-19 13:25:44
If I do:
#define CARDS (INFIN_REPEATS * 256)
where INFIN_REPEATS has been previously defineed, does the pre-processor have the power to evaluate that and substitute all occourances of CARDS with the appropriate integer, or does it substitute with the whole expression (which the compiler should reduce into a single integer anyway)?

No, it doesn't really matter for my code. I'm just idly curious.
[ Reply ]
  Nice timing! by Da_Pineapple2004-12-19 13:27:22
  Why not find out? by Arachnid2004-12-19 13:37:30
    Thankee. (n/t) by LionsPhil2004-12-19 13:53:23
  As long as INFIN_REPEATS is declared by kahuana2004-12-19 13:56:06
  Since the preprocessor doesn't do math... by Tars_Tarkas2006-11-19 12:55:59
  Well I understood all the words... by random_c2004-12-19 16:17:00
    Heh. ;) by LionsPhil2004-12-19 18:22:45
  Thanks all. by LionsPhil2004-12-19 18:25:15

 

[Todays Cartoon Discussion] [News Index]

Come get yer ARS (Account Registration System) Source Code here!
All images, characters, content and text are copyrighted and trademarks of J.D. Frazer except where other ownership applies. Don't do bad things, we have lawyers.
UserFriendly.Org and its operators are not liable for comments or content posted by its visitors, and will cheerfully assist the lawful authorities in hunting down script-kiddies, spammers and other net scum. And if you're really bad, we'll call your mom. (We're not kidding, we've done it before.)