Re: [AD] Proposal for new magic main (2) |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
Peter Wang wrote:
[snip]
> > > #if (ALLEGRO_VERSION == 4) && (ALLEGRO_SUB_VERSION == 0)
> [snip]
> > > }
> > > END_OF_MAIN();
> >
> > IMHO that's worse than before :-)
>
> So you think argc, argv should be implicit in the `allegro_init' macro?
I definitely do. I think Eric's remark is correct: if you want to
leave out END_OF_MAIN() you'll have to conform to the main(argc, argv)
prototype, which IMHO is a good idea anyway.
The #if ALLEGRO_VERSION == 4 construction is something I would not ask
a programmer to write. It requires understanding of which version of
allegro does what and why, and makes it harder to write portable
programs 'automagically', which I think is one of the best treats of
allegro.
Hein Zelle
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<
Hein Zelle hein@xxxxxxxxxx
http://www.icce.rug.nl/~hein
>-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-<