--- Sean 'Captain Napalm' Conner <spc(a)conman.org> wrote:
It was thus said that the Great "Fred Cisin
(XenoSoft)" once stated:
...many/some [C] compilers demand that
pre-processor directives
be left justified.
True to an extent, but even modern C compilers expect the '#' to be in
the first column, while the rest of the directive can be indented, so
my code (when I nest directives) tend to look like:
#ifndef CGILIB
# ifdef DDT
# define D(x) x
# else
.
.
.
I have seen that and it works most places. I have also worked with
compilers that do *not* want to see any whitespace between the #
and the directive (stupid parsers)
I find this easier to follow then if everything was
flushed left.
Agreed. I use it where possible.
-spc (And aren't most assemblers column
sensitive too?)
Sometimes. The ones I've used (6502 and 68000 mostly) don't like to
see instructions on the far left, but you aren't required to space
over 6 or 8 cols just to get past the labels. It kinda depends on
when the assembler itself was written. I've seen some really stupid
ones for the 6502 written in BASIC. :-P
-ethan