Mail Archives: djgpp/2000/01/12/18:32:33
On 12 Jan 00, at 16:19, Damian Yerrick wrote:
>
> In Allegro programs, END_OF_MAIN(); should always immediately
> follow the main() function so that X and Windows versions
> of the program can work properly.
The problem here is that END_OF_MAIN isn't defined in allegro.h.
I (and many others) use the standard Allegro 3.12 which doesn't
have the END_OF_MAIN() defined in allegro.h and that's why the
compiler was giving error messages.
That is why I asked Brad to remove it or comment it out.
I don't know whether it is defined in the WIP version of Allegro but if
this is the case,still the regular (3.12) is the one which most people
have, so WIP version specific code using thing's like
END_OF_MAIN will cause a lot of errors and frustration with the
majority of users who use the normal distribution version.
This IMHO is very bad coding practice.
Kalum
- Raw text -