gnupic@linuxhacker.org

gnupic@linuxhacker.org


Subject: gpasm chokes on #IF
From: David Willmore
Date: Thu, 15 Apr 2004 19:16:25 -0400


From looking at the manual, it's sort of unclear if there is
a preprocessor invoked by default when using gpasm to assemble
code.  It does mention that #something will be handled by the
prepreocessor (whitness #define), but #IF seems not to work.

If I remove the #, then the IF .... ENDIF clauses work just
fine.

Is this just anohter of those MPASM will accept *anything* kind
of situations?

This is only an issue to me as it's someone elses code and every
time he sends it to me I have to take out all of the #'s.  I
don't use MPLAB or any of the Windows programs, so I don't know
if it's safe to recommend to the author to just take the #'s
out.  Is that functional over there in Windows land?

Cheers,
David

gnupic@linuxhacker.org