From: | Henry Schouwstra |
Date: | 26 Jul 2001 at 23:20:51 |
Subject: | Re: .h files |
Hi Richard
I Totaly agree with David, Blitz takes the current definition, so it's handy
to cleanup the to make it more understandable
----- Original Message -----
From: "David McMinn" <D.Mcminn@eee.rgu.ac.uk>
To: <blitz-list@netsoc.ucd.ie>
Sent: Thursday, July 26, 2001 11:52 AM
Subject: Re: .h files
> Hi Richard
>
> > #define FIVE 16
>
> > #define FIVE (1<<16)
>
> You're sure it's done like that? That's pretty lame, redefining the
> define like that. Normally, you'd get something like this:
>
> #define FIVEB 16
> #define FIVEF (1 << FIVEB)
>
> (B meaning Bit, F meaning Full). Anyway, minor rant over :)
>
> #FIVEB = 16
> #FIVEF = (1 LSL #FIVEB) ; LSL is logical shift left
>
> Oh, and if you did it like the guy and redefined #FIVE, Blitz would use
> whatever the current definition of #FIVE was when it's compiling. i.e.
>
> #FIVE = 16
> ; #FIVE is 16 here
> #FIVE = (1 LSL 16)
> ; #FIVE is 1 LSL 16 here
>
-------------------8<---------------
---------------------------------------------------------------------
To unsubscribe, e-mail: blitz-list-unsubscribe@netsoc.ucd.ie
For additional commands, e-mail: blitz-list-help@netsoc.ucd.ie